/* ==========================================================================
   auth.css — External/auth page styles.
   Applied to LM_BDM_Logistics external (unauthenticated) pages.
   Navbar rules use distinctive class names (.ext-navbar, .ext-navbar-brand)
   to avoid collisions with the internal navbar in internal.css.

   These use distinctive class names (.ext-navbar, .ext-navbar-brand) applied
   alongside Bootstrap classes in base_external.html. Internal .navbar-brand
   in internal.css controls internal pages — no overlap.
   ========================================================================== */

/* Narrow navbar to match the left-column width */
.ext-navbar {
    width: 40%;
}
/* Semi-transparent white overlay behind the navbar */
.ext-navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5.2rem;
    background-color: #ffffff41;
    z-index: 1;
}
/* Center the logo in the left column */
.ext-navbar-brand {
    position: absolute;
    left: 50%;
    transform: translateX(-50%) scale(1.25);
    padding-top: 2.7rem;
    z-index: 1;
    filter: brightness(0.7);
}
.base-full-brand-img {
    margin-top: 1rem;
    height: 2.5rem;
}

/* Flash message close button sizing */
.btn-close-sm {
    padding: 0.5rem 1rem 0.5rem 0rem; /* top right bottom left */
    font-size: 0.65rem;
    opacity: 0.5;
}
.btn-close-sm:hover {
    opacity: 0.8;
}

/* Main row container */
.main_row {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

/* Left column with image */
.main_column_left {
    width: 40%;
    position: relative;
    overflow: hidden;  /* Prevent overflow */
}
.login_main_img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: 19% 0;
    position: absolute;
    top: 0;
    left: 0;
}
.login_legal_characters {
    height: 89%;
    max-width: 100%;
    object-fit: cover;
    position: absolute; /* Works with main_column_left overflow:hidden */
    bottom: 0;
    left: 57%;
    transform: translateX(-57%);
    z-index: 1;
}
.login_legal_numbers {
    height: 69%;
    bottom: -4%;
    position: fixed; /* Overrides main_column_left overflow:hidden, to go above the left column width */
    left: 44%;
    transform: translateX(-89%);
    z-index: 2;
}

/* Bottom banner */
.bottom-banner {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3rem;
    background-color: #ffffff41;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.8rem;
    font-weight: 500;
}
.bottom-banner a {
    color: #272727;
    text-decoration: none;
}
.bottom-banner a:hover {
    text-decoration: underline;
}

/* Right column containing forms */
.main_column_right {
    width: 60%;
    flex-direction: column;
    padding-top: 1.4rem;
    overflow-y: auto;
    z-index: 3;
}

/* Style for the info text container */
.login_info_text {
    text-align: left;
    padding: 0 2rem;
    color: #333;
    position: absolute;
    left: 70%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 500px;
}
.login_info_text p {
    font-size: 0.9rem;
}

/* Main heading styles */
.login_main_titles {
    font-family: 'Sofia Sans Extra Condensed', sans-serif;
    color: #2501fb;
    font-size: 2.75rem;
    font-weight: 900;
    margin-bottom: 0rem;
}

/* Hairline divider */
.hairline {
    border: none;
    height: 2px;
    background-color: #2501fb;
    opacity: 1;
    margin-bottom: 1.1rem;
    margin-top: 0.7rem;
}

/* Feature blocks */
.feature_blocks {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    margin: 1.5rem 0 2rem 0;
}
.feature-block {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.arrow-icon {
    display: flex;
    justify-content: center;
    align-items: center;
}
.arrow-icon img {
    width: 43px;
    height: auto;
}
.feature-content {
    background-color: #e0e0e0;
    padding: 0.85rem;
    flex: 1;
    font-size: 0.8rem;
}

/* Clients section */
.clients_section {
    margin-top: 2.8rem;
}
.clients-logos {
    padding-top: 0.4rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    column-gap: 15px;
    filter: grayscale(100%);
    opacity: 0.9;
}
.client-logo {
    width: 135px;
    height: 75px;
    object-fit: contain;
    display: block;
}
.client_logo_reduce {
    padding: 0.3rem;
}

/* Forms container */
.forms_container {
    max-width: 19rem;
    margin: 0 auto;
    background-color: #ffffffad;
}
.auth_error_message {
    color: #ff0000;
}
.login_input_size {
    width: 19rem;
}

/* Auth buttons row */
.auth_buttons_row {
    display: flex;
    justify-content: flex-end;
    gap: 1.1rem;
    padding-right: 2.5rem;
    margin-bottom: 3.1rem;
}
.auth_button {
    font-family: 'Sofia Sans Extra Condensed', sans-serif;
    min-width: 4.2rem;
    border-radius: 1px;
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
    line-height: 1;
    font-size: 1.1rem;
    font-weight: 500;
}
.auth_button:hover {
    background-color: #7b8086;
    border-color: #7b8086;
    color: #fff;
}

/* Styles for the active state of auth buttons */
.auth_button.active {
    position: relative;
}
/* Bottom border indicator for active buttons */
.auth_button.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #2501fb;
}

/* Login button (purple) */
.login_button {
    background-color: #735bfd;
    color: #fff;
    border-color: #735bfd;
}

/* Signup button (blue) */
.signup_button {
    background-color: #2501fb;
    color: #fff;
    border-color: #2501fb;
}

/* Flash Messages for login page */
.login-flash-messages {
    width: 100%;
    max-width: 35rem;
    margin: 0 auto;
}

/* Terms & Policies page */
.terms-container {
    display: flex;
    gap: 1rem;
}
.terms-divider {
    width: 1px;
    background-color: #ccc;
    margin: -1rem 3rem;
}
.terms_left {
    flex: 1.164;
}
.terms_right {
    flex: 1;
}
.terms-container-top-spacing {
    margin-top: 4.3rem;
}

/* Reset Password & Unconfirmed Page Styles */
.auth_page_top_spacing {
    margin-top: 5.5rem;
}

.unconfirmed_inner_container {
    max-width: 600px;
}

.unconfirmed_title_override {
    font-size: 1.8rem;
}

.unconfirmed_action_container {
    margin-top: 1.5rem;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

/* Tablet — 768px and below */
@media (max-width: 768px) {
    /* Stack layout: hide left column, right column goes full width */
    .main_row {
        flex-direction: column;
    }
    .main_column_left {
        display: none;
    }
    .main_column_right {
        width: 100%;
        padding-top: 5rem; /* space for the navbar */
    }

    /* Navbar spans full width on tablet */
    .ext-navbar {
        width: 100%;
    }
    .ext-navbar::before {
        height: 4rem;
    }
    .ext-navbar-brand {
        padding-top: 1.5rem;
        transform: translateX(-50%) scale(1);
    }

    /* Center the auth buttons */
    .auth_buttons_row {
        justify-content: center;
        padding-right: 0;
        margin-bottom: 2rem;
    }

    /* Forms container responsive */
    .forms_container {
        max-width: 100%;
        padding: 0 1.5rem;
    }
    .login_input_size {
        width: 100%;
        max-width: 19rem;
    }

    /* Info text — remove absolute positioning, center naturally */
    .login_info_text {
        position: static;
        transform: none;
        max-width: 500px;
        margin: 0 auto;
        padding: 0 1.5rem;
    }

    /* Flash messages */
    .login-flash-messages {
        max-width: 100%;
        padding: 0 1rem;
    }

    /* Terms & Policies — stack vertically */
    .terms-container {
        flex-direction: column;
    }
    .terms-divider {
        width: 100%;
        height: 1px;
        margin: 1rem 0;
    }
}

/* Mobile — 480px and below */
@media (max-width: 480px) {
    .main_column_right {
        padding-top: 4.5rem;
    }

    /* Tighter spacing */
    .auth_buttons_row {
        gap: 0.8rem;
        margin-bottom: 1.5rem;
    }
    .auth_button {
        min-width: 3.8rem;
        font-size: 1rem;
        padding: 0.4rem 0.7rem;
    }

    /* Typography adjustments */
    .login_main_titles {
        font-size: 2.2rem;
    }
    .login_info_text p {
        font-size: 0.85rem;
    }

    /* Feature blocks — tighter */
    .feature_blocks {
        gap: 0.7rem;
        margin: 1rem 0 1.5rem 0;
    }
    .feature-content {
        font-size: 0.75rem;
        padding: 0.7rem;
    }
    .arrow-icon img {
        width: 35px;
    }

    /* Client logos — smaller */
    .client-logo {
        width: 100px;
        height: 55px;
    }
    .clients-logos {
        column-gap: 10px;
    }

    .forms_container {
        padding: 0 1rem;
    }
}

/* Small Mobile — 375px and below */
@media (max-width: 375px) {
    .main_column_right {
        padding-top: 4rem;
    }

    .ext-navbar-brand {
        transform: translateX(-50%) scale(0.85);
        padding-top: 1.2rem;
    }

    .login_main_titles {
        font-size: 1.9rem;
    }
    .hairline {
        margin-bottom: 0.8rem;
        margin-top: 0.5rem;
    }

    .auth_buttons_row {
        gap: 0.6rem;
        margin-bottom: 1.2rem;
    }
    .auth_button {
        min-width: 3.5rem;
        font-size: 0.95rem;
    }

    .login_info_text {
        padding: 0 0.75rem;
    }
    .login_info_text p {
        font-size: 0.8rem;
    }

    .feature-content {
        font-size: 0.7rem;
        padding: 0.6rem;
    }
    .arrow-icon img {
        width: 30px;
    }

    .client-logo {
        width: 80px;
        height: 45px;
    }

    .forms_container {
        padding: 0 0.75rem;
    }
    .login_input_size {
        max-width: 100%;
    }

    /* Bottom banner (if visible via terms page link) */
    .bottom-banner {
        font-size: 0.7rem;
        height: 2.5rem;
    }
}
