.auth-page {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.92)),
        url("auth-mobile-bg.svg") center top / cover no-repeat,
        #eef4f0;
}

.auth-page-shell {
    flex: 1;
    min-width: 0;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 42px 24px;
    overflow: auto;
}

.auth-page-card {
    display: flex;
    min-height: 372px;
    flex-direction: column;
    width: min(420px, 100%);
    padding: 40px 34px 34px;
    border: 1px solid rgba(189, 204, 185, 0.82);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 24px 58px rgba(49, 85, 40, 0.13);
    backdrop-filter: blur(14px);
}

.auth-page-copy {
    margin-bottom: 26px;
}

.auth-mobile-hero {
    display: none;
}

.auth-page-card-flow {
    min-height: 432px;
    width: min(460px, 100%);
}

.auth-step-panel {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.auth-invite-benefit {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 11px 12px;
    border: 1px solid #dfe8dd;
    border-radius: 8px;
    background: #f8faf7;
}

.auth-invite-benefit.is-empty {
    display: none;
}

.auth-invite-benefit-title {
    font-size: 12px;
    font-weight: 600;
    color: #111111;
}

.auth-invite-benefit-text {
    color: #6b7280;
    font-size: 12px;
    line-height: 1.5;
}

.auth-display-name-preview {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 20px;
    color: #4b5563;
    font-size: 13px;
    line-height: 1.4;
}

.auth-display-name-preview.is-empty {
    display: none;
}

.auth-display-name-preview-label {
    color: #6b7280;
    font-weight: 500;
}

.auth-display-name-preview-value {
    color: #111111;
    font-weight: 600;
}

.auth-flow-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 2px;
}

.auth-flow-actions-split {
    justify-content: space-between;
}

.auth-flow-actions .button-primary,
.auth-flow-actions .button-secondary {
    width: auto;
    min-height: 38px;
    border-radius: 8px;
}

.auth-page-eyebrow {
    margin: 0 0 10px;
    color: #6b7280;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth-page-title {
    margin: 0;
    font-size: 18px;
    line-height: 1.2;
    font-weight: 400;
}

.auth-page-text {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.5;
}

.auth-page-form {
    gap: 18px;
}

.auth-page-form .button-primary,
.auth-page-form .button-secondary {
    width: 100%;
    min-height: 42px;
    min-width: 120px;
    padding: 0 14px;
    font-size: 13px;
    border-radius: 8px;
}

.auth-page-form > .button-primary,
.auth-page-form > .button-secondary {
    margin-top: 4px;
}

.auth-page .form-field {
    color: var(--muted);
}

.auth-page .form-field input {
    min-height: 40px;
    border-color: #dfe8dd;
    border-radius: 8px;
    background: #f8faf9;
}

.auth-page .form-field input:focus {
    border-color: #bdccb9;
    background: #ffffff;
}

.auth-page-footer {
    margin: 24px 0 0;
    color: #6b7280;
    font-size: 13px;
}

.auth-page-footer-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.auth-page-footer-right {
    margin-left: auto;
    white-space: nowrap;
}

.auth-page-footer a {
    color: #111111;
    text-decoration: none;
}

.auth-page-footer a:hover,
.auth-page-footer a:focus-visible {
    text-decoration: underline;
}

@media (max-width: 640px) {
    .auth-page {
        background: #ffffff;
    }

    .auth-page-shell {
        display: block;
        min-height: auto;
        padding: 0 28px 28px;
        overflow: visible;
    }

    .auth-mobile-hero {
        display: flex;
        min-height: 248px;
        margin: 0 -28px 42px;
        padding: 74px 32px 24px;
        flex-direction: column;
        justify-content: flex-start;
        gap: 9px;
        color: #263326;
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.94)),
            url("auth-mobile-bg.svg") center / cover no-repeat;
    }

    .auth-mobile-brand {
        display: inline-flex;
        align-items: center;
        gap: 9px;
        min-width: 0;
        color: #5f754f;
        font-size: 25px;
        line-height: 1.1;
        font-weight: 700;
    }

    .auth-mobile-logo {
        width: 42px;
        height: 42px;
        flex: 0 0 auto;
    }

    .auth-mobile-hero p {
        margin: 0;
        color: #5f6f5a;
        font-size: 13px;
        line-height: 1.5;
    }

    .auth-page-card,
    .auth-page-card-flow {
        display: block;
        min-height: 0;
        width: 100%;
        padding: 0;
        border: 0;
        background: transparent;
        box-shadow: none;
    }

    .auth-page-copy {
        margin-bottom: 20px;
    }

    .auth-page-title {
        font-size: 18px;
        font-weight: 400;
    }

    .auth-page-form {
        gap: 16px;
    }

    .auth-step-panel {
        gap: 16px;
    }

    .auth-page .form-field {
        gap: 7px;
    }

    .auth-page-form .button-primary,
    .auth-page-form .button-secondary {
        min-height: 38px;
        border-radius: 8px;
    }

    .auth-page .form-field input {
        min-height: 46px;
        padding: 0 38px 0 13px;
        border-radius: 8px;
        background: #f8faf9;
        border-color: #e6ece6;
        font-size: 15px;
    }

    .auth-page .form-field input:focus {
        border-color: #bdccb9;
        background: #ffffff;
    }

    .auth-page .form-field-status {
        top: 23px;
        right: 12px;
    }

    .auth-page-footer {
        margin-top: 18px;
    }

    .auth-page-footer-row {
        flex-wrap: wrap;
        row-gap: 6px;
    }

    .auth-page-footer-right {
        margin-left: 0;
    }
}

