.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    background:
        radial-gradient(
            circle at top left,
            rgba(63, 81, 181, 0.18),
            transparent 35%
        ),
        radial-gradient(
            circle at bottom right,
            rgba(0, 150, 136, 0.15),
            transparent 35%
        ),
        #f5f7fb;
}

/* =====================================================
   AUTHENTICATION CARD
   ===================================================== */

.auth-card {
    width: 100%;
    max-width: 1050px;
    overflow: hidden;
    border: 1px solid rgba(63, 81, 181, 0.08);
    border-radius: 22px !important;
    background-color: #ffffff;
}

.auth-card-register {
    max-width: 1120px;
}

/* =====================================================
   LEFT BRANDING SECTION
   ===================================================== */

.auth-brand-section {
    min-height: 650px;
    display: flex;
    color: #ffffff;
    background:
        linear-gradient(
            145deg,
            rgba(42, 55, 140, 0.98),
            rgba(63, 81, 181, 0.95),
            rgba(0, 137, 123, 0.9)
        );
}

.auth-card-register .auth-brand-section {
    min-height: 760px;
}

.auth-brand-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 56px 48px;
}

.auth-brand-icon {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 20px;
    background-color: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
}

.auth-brand-icon .mud-icon-root {
    color: #ffffff;
    font-size: 42px;
}

.auth-brand-title {
    color: #ffffff !important;
    font-weight: 700 !important;
    letter-spacing: -1px;
}

.auth-brand-subtitle {
    margin-top: 10px !important;
    color: rgba(255, 255, 255, 0.95) !important;
    font-weight: 500 !important;
}

.auth-brand-description {
    max-width: 370px;
    margin-top: 22px !important;
    color: rgba(255, 255, 255, 0.78) !important;
    line-height: 1.7 !important;
}

/* =====================================================
   FEATURE LIST
   ===================================================== */

.auth-feature-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 42px;
}

.auth-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.92);
}

.auth-feature-item .mud-icon-root {
    color: #80cbc4;
}

/* =====================================================
   RIGHT FORM SECTION
   ===================================================== */

.auth-form-section {
    min-height: 650px;
    display: flex;
    align-items: center;
    background-color: #ffffff;
}

.auth-card-register .auth-form-section {
    min-height: 760px;
}

.auth-form-content {
    width: 100%;
    max-width: 540px;
    margin: auto;
    padding: 48px 56px;
}

.auth-register-content {
    max-width: 620px;
    padding-top: 36px;
    padding-bottom: 36px;
}

.auth-mobile-logo {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 32px;
}

.auth-mobile-logo .mud-typography {
    font-weight: 700;
}

.auth-form-title {
    color: #20243a !important;
    font-weight: 700 !important;
    letter-spacing: -0.6px;
}

.auth-form-subtitle {
    margin-top: 8px !important;
    color: #70758a !important;
}

.auth-form {
    margin-top: 32px;
}

/* =====================================================
   COMPACT INPUT FIELDS
   ===================================================== */

/* Compact MudBlazor input fields */

.auth-page .mud-input-outlined-border {
    border-radius: 8px !important;
}

.auth-page .mud-input-root {
    min-height: 44px !important;
}

.auth-page .mud-input-slot {
    min-height: 44px !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}

.auth-page .mud-input-control-input-container {
    min-height: 44px !important;
}

.auth-page .mud-input-control {
    margin-top: 2px;
}

.auth-page .mud-input-adornment {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.auth-page .mud-input-adornment .mud-icon-root {
    color: #70758a;
    font-size: 21px;
}

.auth-page .mud-input-adornment .mud-icon-button {
    width: 36px;
    height: 36px;
    padding: 7px;
}

/* =====================================================
   FORM OPTIONS
   ===================================================== */

.auth-form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.auth-action-link {
    font-weight: 600 !important;
}

.auth-page .mud-checkbox {
    margin-left: -8px;
}

/* =====================================================
   SUBMIT BUTTON
   ===================================================== */

.auth-submit-button {
    min-height: 48px;
    border-radius: 10px !important;
    font-weight: 600 !important;
    text-transform: none !important;
    box-shadow: 0 8px 20px rgba(63, 81, 181, 0.22) !important;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.auth-submit-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(63, 81, 181, 0.28) !important;
}

.auth-submit-button:disabled {
    transform: none;
    box-shadow: none !important;
}

/* =====================================================
   FOOTER AND SECURITY MESSAGE
   ===================================================== */

.auth-footer {
    margin-top: 4px;
}

.auth-security-text {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 28px !important;
    color: #8a8fa3 !important;
}





/* =====================================================
   FORGOT PASSWORD
   ===================================================== */

.auth-form-header-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    border-radius: 18px;
    background-color: rgba(63, 81, 181, 0.1);
}

.auth-form-header-icon .mud-icon-root {
    font-size: 34px;
}

.auth-info-box {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 24px;
    padding: 14px 16px;
    border: 1px solid rgba(33, 150, 243, 0.18);
    border-radius: 10px;
    color: #4f566b;
    background-color: rgba(33, 150, 243, 0.07);
}

.auth-info-box .mud-icon-root {
    flex-shrink: 0;
    margin-top: 2px;
}

.auth-info-box .mud-typography {
    color: inherit;
    line-height: 1.5;
}

@media (max-width: 600px) {
    .auth-form-header-icon {
        margin-right: auto;
        margin-left: auto;
    }
}





/* =====================================================
   TABLET
   ===================================================== */

@media (max-width: 959px) {
    .auth-page {
        padding: 24px;
    }

    .auth-brand-section {
        display: none;
    }

    .auth-form-section,
    .auth-card-register .auth-form-section {
        min-height: auto;
    }

    .auth-mobile-logo {
        display: flex;
    }

    .auth-form-content,
    .auth-register-content {
        max-width: 620px;
        padding: 48px;
    }
}

/* =====================================================
   MOBILE
   ===================================================== */

@media (max-width: 600px) {
    .auth-page {
        align-items: flex-start;
        padding: 16px;
    }

    .auth-card {
        margin-top: 16px;
        border-radius: 16px !important;
    }

    .auth-form-content,
    .auth-register-content {
        padding: 34px 22px;
    }

    .auth-form-title,
    .auth-form-subtitle {
        text-align: center;
    }

    .auth-form {
        margin-top: 28px;
    }

    .auth-form-options {
        align-items: flex-start;
        gap: 12px;
    }

    .auth-security-text {
        line-height: 1.5 !important;
    }
}
