.auth-page {
    position: fixed;
    inset: 0;
    z-index: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100vw;
    height: 100vh;
    min-height: 100svh;
    padding: 32px;
    overflow: auto;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.auth-overlay {
    position: fixed;
    inset: 0;
    z-index: 0;
    background: rgba(2, 6, 23, 0.48);
}

.auth-shell {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 480px;
    margin: auto;
}

@media (min-width: 1025px) {
    .auth-shell {
        max-width: 600px;
    }
}

.auth-banner-side {
    padding: 48px;
    border-radius: 36px;
    background: linear-gradient( 180deg, rgba(6,24,48,.94), rgba(4,18,36,.97) );
    border: 1px solid rgba(255,255,255,.08);
    backdrop-filter: blur(10px);
    box-shadow: 0 28px 80px rgba(0,0,0,.22);
}

.auth-banner-content {
    width: 100%;
    max-width: 500px;
}

.auth-welcome {
    color: #ffffff;
    font-size: 34px;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.04em;
}

    .auth-welcome span {
        color: #7ed321;
    }

.auth-banner-description {
    margin-top: 18px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    line-height: 1.65;
}

.auth-banner-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    margin-bottom: 26px;
    color: #7ed321;
    border: 1px solid rgba(126, 211, 33, 0.28);
    border-radius: 22px;
    background: rgba(126, 211, 33, 0.1);
}

    .auth-banner-icon .mud-icon-root {
        font-size: 44px;
    }

.auth-features {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 30px;
}

.auth-feature {
    display: flex;
    align-items: center;
    gap: 14px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 15px;
}

    .auth-feature .mud-icon-root {
        flex-shrink: 0;
        color: #7ed321;
        font-size: 24px;
    }

.auth-feature-highlight {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 14px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

    .auth-feature-highlight .mud-icon-root {
        flex-shrink: 0;
        color: #7ed321;
        font-size: 42px;
    }

    .auth-feature-highlight strong {
        display: block;
        margin-bottom: 4px;
        color: #ffffff;
        font-size: 18px;
        font-weight: 800;
    }

    .auth-feature-highlight span {
        color: rgba(255, 255, 255, 0.78);
        font-size: 14px;
    }

.auth-form-side {
    width: 100%;
    padding: 34px 38px 48px;
    overflow-x: hidden;
    overflow-y: auto;
    border-radius: 36px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(12px);
    scrollbar-gutter: stable;
}

.auth-form-content {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
}

.auth-password-form-side {
    display: flex;
    align-items: center;
    justify-content: center;
}

    .auth-password-form-side .auth-form-content {
        max-width: 430px;
    }

.auth-logo-container {
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
}

.auth-logo-image {
    display: block;
    width: 145px;
    max-width: 100%;
    max-height: 68px;
    object-fit: contain;
}

.auth-title {
    margin-bottom: 4px;
    color: #0f172a;
    font-size: 26px;
    font-weight: 900;
    line-height: 1.2;
    text-align: center;
}

.auth-subtitle {
    margin-bottom: 18px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.55;
    text-align: center;
}

.auth-account-type {
    margin-top: 14px;
}

.auth-account-label {
    display: block;
    margin-bottom: 9px;
    color: #334155;
    font-weight: 700;
}

.auth-account-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.auth-account-option {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
    min-height: 112px;
    padding: 15px;
    cursor: pointer;
    font: inherit;
    text-align: left;
    border: 1px solid #dbe3ec;
    border-radius: 14px;
    outline: none;
    background: #ffffff;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

    .auth-account-option:hover:not(:disabled) {
        border-color: #7ed321;
        box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
        transform: translateY(-1px);
    }

    .auth-account-option:focus-visible {
        border-color: #7ed321;
        box-shadow: 0 0 0 3px rgba(126, 211, 33, 0.2);
    }

    .auth-account-option:disabled {
        cursor: default;
        opacity: 0.7;
    }

.auth-account-option-selected {
    border-color: #7ed321;
    background: rgba(126, 211, 33, 0.08);
    box-shadow: 0 0 0 1px rgba(126, 211, 33, 0.12);
}

.auth-account-option-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    color: #5a9918;
    border-radius: 12px;
    background: rgba(126, 211, 33, 0.13);
}

.auth-account-option-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.auth-account-option-title {
    color: #0f172a;
    font-size: 14px;
    font-weight: 800;
}

.auth-account-option-description {
    color: #64748b;
    font-size: 12px;
    line-height: 1.4;
}

.auth-account-option-check {
    position: absolute;
    top: 9px;
    right: 9px;
    color: #7ed321;
    font-size: 19px;
}

.auth-company-section {
    margin-top: 16px;
}

.auth-company-alert {
    margin-top: 12px;
    margin-bottom: 8px;
}

.auth-button {
    width: 100%;
    height: 44px;
    margin-top: 18px;
    border-radius: 999px;
    background: #7ed321 !important;
    color: #ffffff !important;
    font-weight: 900;
    text-transform: uppercase;
    box-shadow: 0 10px 24px rgba(126, 211, 33, 0.3);
}

    .auth-button:hover {
        background: #70bf1d !important;
        box-shadow: 0 12px 28px rgba(126, 211, 33, 0.38);
    }

.auth-secondary-button {
    width: 100%;
    margin-top: 6px;
    color: #0f172a !important;
    font-weight: 700;
}

.auth-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 14px;
}

.auth-success-message {
    margin-top: 14px;
    padding: 14px 16px;
    color: #3f6f0c;
    font-size: 13px;
    line-height: 1.5;
    border: 1px solid rgba(126, 211, 33, 0.3);
    border-radius: 12px;
    background: rgba(126, 211, 33, 0.1);
}

@media (min-width: 601px) and (max-width: 1024px) {

    .auth-page {
        position: fixed;
        inset: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100vw;
        height: 100vh;
        min-height: 100svh;
        padding: 28px;
        overflow-y: auto;
    }

    .auth-shell {
        display: block;
        width: min(560px, calc(100vw - 56px));
        margin: auto;
    }

    .auth-banner-side {
        display: none;
    }

    .auth-form-side {
        width: 100%;
        padding: 38px 44px 34px;
        border-radius: 32px;
        overflow: visible;
    }

    .auth-password-form-side {
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .auth-password-form-side .auth-form-content {
            max-width: 430px;
        }
}

@media (max-width:600px) {

    .auth-page {
        position: fixed;
        inset: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 16px;
        overflow-y: auto;
    }

    .auth-overlay {
        display: block;
    }

    .auth-shell {
        display: block;
        width: min(100%,420px);
        margin: auto;
    }

    .auth-banner-side {
        display: none;
    }

    .auth-form-side {
        width: 100%;
        padding: 28px 22px;
        border-radius: 26px;
        overflow: visible;
    }

    .auth-password-form-side {
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .auth-password-form-side .auth-form-content {
            max-width: none;
        }

    .auth-account-options {
        grid-template-columns: 1fr;
    }

    .auth-account-option {
        min-height: 96px;
    }

    .auth-footer {
        flex-wrap: wrap;
    }

    .auth-title {
        font-size: 24px;
    }
}

@media (min-width: 961px) and (max-height: 850px) {
    .auth-page {
        padding: 16px;
    }

    .auth-shell {
        max-height: calc(100svh - 32px);
        border-radius: 28px;
    }

    .auth-banner-side {
        padding: 32px 42px;
    }

    .auth-welcome {
        font-size: 30px;
    }

    .auth-features {
        gap: 14px;
        margin-top: 24px;
    }

    .auth-feature-highlight {
        margin-top: 8px;
        padding-top: 16px;
    }

    .auth-form-side {
        padding: 20px 32px 32px;
        overflow-y: auto;
        scrollbar-gutter: stable;
    }

    .auth-logo-container {
        margin-bottom: 6px;
    }

    .auth-logo-image {
        width: 130px;
        max-height: 54px;
    }

    .auth-title {
        margin-bottom: 2px;
        font-size: 23px;
    }

    .auth-subtitle {
        margin-bottom: 12px;
    }

    .auth-account-type {
        margin-top: 10px;
    }

    .auth-account-options {
        gap: 10px;
    }

    .auth-account-option {
        min-height: 96px;
        padding: 12px;
    }

    .auth-account-option-icon {
        flex-basis: 38px;
        width: 38px;
        height: 38px;
    }

    .auth-company-section {
        margin-top: 12px;
    }

    .auth-company-alert {
        margin-top: 10px;
        margin-bottom: 6px;
    }

    .auth-button {
        margin-top: 14px;
    }

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

@media (max-width:380px) {

    .auth-page {
        padding: 10px;
    }

    .auth-shell {
        width: 100%;
    }

    .auth-form-side {
        padding: 22px 16px;
        border-radius: 22px;
    }

    .auth-logo-image {
        width: 120px;
    }

    .auth-title {
        font-size: 21px;
    }

    .auth-subtitle {
        font-size: 12px;
    }
}

.external-auth-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    width: 100%;
}
