.auth-shell {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: calc(76px + 52px) var(--gutter) 72px;
    background: var(--surface);
}

.auth-card {
    width: 100%;
    max-width: 460px;
    padding: 40px 38px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--page);
    box-shadow: 0 18px 44px rgba(23, 32, 58, 0.08);
}

.auth-title {
    font-size: 26px;
    margin-bottom: 8px;
}

.auth-lead {
    margin-bottom: 26px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.6;
}

.auth-alert {
    margin-bottom: 20px;
    padding: 12px 14px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: 14.5px;
    line-height: 1.55;
}

.auth-title + .auth-alert {
    margin-top: 18px;
}

.auth-alert ul {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.auth-alert a {
    font-weight: 700;
    text-decoration: underline;
}

.auth-alert--danger {
    border-color: rgba(220, 38, 38, 0.35);
    background: rgba(220, 38, 38, 0.08);
    color: var(--danger);
}

.auth-alert--danger a {
    color: var(--danger);
}

.auth-alert--warning {
    border-color: #F3D190;
    background: #FEF6E7;
    color: #8A5A00;
}

.auth-alert--warning a {
    color: #8A5A00;
}

.auth-alert--success {
    border-color: rgba(22, 163, 74, 0.32);
    background: rgba(22, 163, 74, 0.08);
    color: var(--success);
}

.auth-field {
    margin-bottom: 18px;
}

.auth-field > label {
    display: block;
    margin-bottom: 7px;
    color: var(--ink);
    font-size: 14px;
    font-weight: 600;
}

.auth-field > small {
    display: block;
    margin-top: 7px;
    color: var(--muted);
    font-size: 13px;
}

.auth-input,
.auth-field .lv-password input {
    display: block;
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--page);
    color: var(--ink);
    font-size: 15px;
    line-height: 1.4;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.auth-input:focus,
.auth-field .lv-password input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.16);
}

.auth-input:read-only {
    background: var(--surface);
    color: var(--ink-soft);
}

.auth-field .lv-password {
    position: relative;
}

.auth-field .lv-password input {
    padding-right: 48px;
}

.auth-field .lv-password-toggle {
    position: absolute;
    top: 1px;
    right: 1px;
    bottom: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    padding: 0;
    border-radius: 0 10px 10px 0;
}

.auth-field .lv-password-toggle i {
    display: none;
}

.auth-field .lv-password-toggle::before {
    content: '';
    width: 20px;
    height: 20px;
    opacity: 0.65;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center / 20px 20px no-repeat;
    transition: opacity 0.16s ease;
}

.auth-field .lv-password-toggle:hover::before {
    opacity: 1;
}

.auth-field .lv-password-toggle[aria-pressed="true"]::before {
    opacity: 1;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232F6BFF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24'/%3E%3Cpath d='M1 1l22 22'/%3E%3C/svg%3E");
}

.auth-check {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 20px;
    color: var(--ink-soft);
    font-size: 14.5px;
    cursor: pointer;
}

.auth-check input {
    flex: none;
    width: 17px;
    height: 17px;
    margin: 0;
    accent-color: var(--accent);
    cursor: pointer;
}

.auth-btn {
    display: block;
    width: 100%;
    padding: 13px 18px;
    border: 1px solid var(--accent);
    border-radius: 999px;
    background: var(--accent);
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    transition: background 0.18s ease, border-color 0.18s ease;
}

.auth-btn:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    color: #ffffff;
}

.auth-divider {
    position: relative;
    margin: 26px 0 16px;
    text-align: center;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border);
}

.auth-divider span {
    position: relative;
    padding: 0 12px;
    background: var(--page);
    color: var(--muted);
    font-size: 13px;
}

.auth-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin-top: 10px;
    padding: 12px 18px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--page);
    color: var(--ink);
    font-size: 15px;
    font-weight: 600;
    transition: background 0.18s ease, border-color 0.18s ease;
}

.auth-social:hover {
    border-color: var(--ink-soft);
    background: var(--surface);
    color: var(--ink);
}

.auth-social svg {
    flex: none;
}

.auth-alt {
    margin-top: 20px;
    color: var(--ink-soft);
    font-size: 14.5px;
    text-align: center;
}

.auth-alt a {
    font-weight: 700;
}

.auth-fine {
    margin-top: 10px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
    text-align: center;
}

.auth-note {
    margin-top: 22px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

.auth-back {
    margin-top: 22px;
    font-size: 14.5px;
    text-align: center;
}

.auth-back a {
    font-weight: 700;
}

.auth-applink {
    margin-bottom: 22px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--accent-tint);
}

.auth-applink p {
    margin-top: 10px;
    color: var(--ink-soft);
    font-size: 13px;
    text-align: center;
}

.auth-form--email-changed strong {
    color: var(--ink);
}

@media (max-width: 960px) {
    .auth-shell {
        padding: calc(64px + 40px) var(--gutter) 56px;
    }

    .auth-card {
        padding: 34px 28px;
    }
}

@media (max-width: 640px) {
    .auth-shell {
        min-height: 0;
        padding: calc(64px + 28px) 16px 48px;
    }

    .auth-card {
        padding: 28px 20px;
        border-radius: 14px;
    }

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

    .auth-lead {
        margin-bottom: 22px;
        font-size: 14.5px;
    }
}
