/**
 * Auth flow v4 — вход, код подтверждения, успешный вход
 * Страницы: login.html, login_verify.html, login_loading.html
 */

:root {
    --af-bg: #0b0f14;
    --af-surface: rgba(18, 24, 33, 0.78);
    --af-card: rgba(248, 250, 252, 0.98);
    --af-card-border: rgba(34, 211, 238, 0.14);
    --af-text: #f1f5f9;
    --af-muted: #94a3b8;
    --af-ink: #0b0f14;
    --af-ink-muted: #475569;
    --af-accent: #22d3ee;
    --af-accent-soft: rgba(34, 211, 238, 0.14);
    --af-accent-glow: rgba(8, 145, 178, 0.28);
    --af-teal: #0891b2;
    --af-success: #22c55e;
    --af-error: #ef4444;
    --af-warning: #f59e0b;
    --af-radius: 20px;
    --af-radius-sm: 12px;
    --af-font: 'DM Sans', 'Syne', system-ui, -apple-system, sans-serif;
    --af-display: 'Syne', 'DM Sans', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body.auth-flow {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    font-family: var(--af-font);
    color: var(--af-text);
    background: var(--af-bg);
    -webkit-font-smoothing: antialiased;
}

/* --- Фон --- */
.auth-flow__ambient {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.auth-flow__grid-bg {
    position: absolute;
    inset: 0;
    opacity: 0.4;
    background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.04) 1px, transparent 0);
    background-size: 28px 28px;
}

.auth-flow__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: af-float 14s ease-in-out infinite;
}

.auth-flow__orb--1 {
    width: 420px;
    height: 420px;
    top: -120px;
    right: -80px;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.22) 0%, transparent 70%);
}

.auth-flow__orb--2 {
    width: 360px;
    height: 360px;
    bottom: -100px;
    left: -60px;
    background: radial-gradient(circle, rgba(8, 145, 178, 0.2) 0%, transparent 70%);
    animation-delay: -4s;
}

.auth-flow__orb--3 {
    width: 280px;
    height: 280px;
    top: 45%;
    left: 35%;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.12) 0%, transparent 70%);
    animation-delay: -8s;
}

@keyframes af-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(12px, -16px) scale(1.04); }
}

/* --- Layout --- */
.auth-flow__page {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    min-height: 100dvh;
    padding: max(1rem, env(safe-area-inset-top)) max(1.25rem, env(safe-area-inset-right)) max(1.5rem, env(safe-area-inset-bottom)) max(1.25rem, env(safe-area-inset-left));
    display: flex;
    flex-direction: column;
}

.auth-flow__page--center {
    align-items: center;
    justify-content: center;
}

.auth-flow__top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.75rem;
}

.auth-flow__top--compact {
    margin-bottom: 1.25rem;
}

/* --- Логотип: тёмный на светлом, светлый на тёмном --- */
.auth-brand {
    display: inline-flex;
    text-decoration: none;
    line-height: 0;
}

.auth-brand__img {
    display: block;
    height: 38px;
    width: auto;
}

.auth-brand__img--light { display: none; }

.auth-brand--header .auth-brand__img--dark { display: none; }
.auth-brand--header .auth-brand__img--light { display: block; }

/* Если logo-light.svg не загружен на сервер — инвертируем обычный логотип */
.auth-brand--header .auth-brand__img--light {
    object-fit: contain;
}

.auth-brand--header .auth-brand__img--light:not([src]),
.auth-brand--header .auth-brand__img--light[src=''] {
    display: none;
}

.auth-brand--header.auth-brand--fallback .auth-brand__img--dark {
    display: block;
    filter: brightness(0) invert(1);
}

.auth-brand--header.auth-brand--fallback .auth-brand__img--light {
    display: none;
}
.auth-brand--header .auth-brand__img {
    height: 40px;
    filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.35));
}

.auth-brand--card .auth-brand__img {
    height: 42px;
}

.auth-brand--card .auth-brand__img--light { display: none; }
.auth-brand--card .auth-brand__img--dark { display: block; }

/* --- Шаги --- */
.auth-steps__list {
    display: flex;
    align-items: center;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
}

.auth-steps__item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    opacity: 0.45;
    transition: opacity 0.25s;
}

.auth-steps__item--active,
.auth-steps__item--done {
    opacity: 1;
}

.auth-steps__dot {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--af-muted);
}

.auth-steps__item--active .auth-steps__dot {
    background: linear-gradient(135deg, var(--af-accent), #0891b2);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 0 20px var(--af-accent-glow);
}

.auth-steps__item--done .auth-steps__dot {
    background: rgba(34, 197, 94, 0.2);
    border-color: rgba(34, 197, 94, 0.4);
    color: var(--af-success);
}

.auth-steps__dot .material-icons {
    font-size: 0.95rem;
}

.auth-steps__label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--af-muted);
}

.auth-steps__item--active .auth-steps__label {
    color: var(--af-text);
}

.auth-steps__line {
    width: 28px;
    height: 2px;
    margin: 0 0.35rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.auth-steps__line--done {
    background: linear-gradient(90deg, var(--af-success), rgba(34, 197, 94, 0.4));
}

@media (max-width: 520px) {
    .auth-steps__label { display: none; }
    .auth-steps__list { padding: 0.45rem 0.75rem; }
}

/* --- Grid --- */
.auth-flow__layout {
    flex: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
    gap: 2rem;
    align-items: center;
    max-width: 1040px;
    width: 100%;
    margin: 0 auto;
}

.auth-flow__layout--narrow {
    grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
}

.auth-flow__hero {
    padding: 0.5rem 0;
}

.auth-flow__eyebrow {
    margin: 0 0 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--af-accent);
}

.auth-flow__hero-title {
    margin: 0 0 1rem;
    font-size: clamp(1.75rem, 4vw, 2.35rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.auth-flow__hero-text {
    margin: 0 0 1.5rem;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--af-muted);
    max-width: 36ch;
}

.auth-flow__features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.65rem;
}

.auth-flow__features li {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.9375rem;
    color: #d6d3d1;
}

.auth-flow__features .material-icons {
    font-size: 1.25rem;
    color: var(--af-accent);
    opacity: 0.9;
}

/* --- Карточка --- */
.auth-flow__card {
    background: var(--af-card);
    color: var(--af-ink);
    border-radius: var(--af-radius);
    padding: 2rem 1.75rem;
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.04) inset,
        0 24px 64px -16px rgba(0, 0, 0, 0.55),
        0 0 80px -24px var(--af-accent-glow);
}

.auth-flow__card--success {
    max-width: 440px;
    width: 100%;
    text-align: center;
    padding: 2.25rem 1.75rem 2rem;
}

.auth-flow__card-head {
    margin-bottom: 1.5rem;
}

.auth-flow__icon-badge {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    margin-bottom: 1rem;
    background: var(--af-accent-soft);
    color: var(--af-accent);
}

.auth-flow__icon-badge .material-icons {
    font-size: 1.65rem;
}

.auth-flow__card-title {
    margin: 0 0 0.35rem;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--af-ink);
}

.auth-flow__card-sub {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--af-ink-muted);
}

.auth-flow__card-sub strong {
    color: var(--af-ink);
    font-weight: 700;
}

/* --- Flash --- */
.auth-flash-list {
    display: grid;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.auth-flash {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.75rem 0.9rem;
    border-radius: var(--af-radius-sm);
    font-size: 0.875rem;
    line-height: 1.45;
    font-weight: 500;
}

.auth-flash .material-icons {
    font-size: 1.15rem;
    flex-shrink: 0;
    margin-top: 0.05rem;
}

.auth-flash--success {
    background: rgba(34, 197, 94, 0.12);
    color: #15803d;
    border: 1px solid rgba(34, 197, 94, 0.25);
}

.auth-flash--error {
    background: rgba(239, 68, 68, 0.1);
    color: #b91c1c;
    border: 1px solid rgba(239, 68, 68, 0.22);
}

.auth-flash--warning {
    background: rgba(245, 158, 11, 0.12);
    color: #b45309;
    border: 1px solid rgba(245, 158, 11, 0.25);
}

.auth-flash--info,
.auth-flash--support {
    background: rgba(59, 130, 246, 0.1);
    color: #1d4ed8;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

/* --- Поля --- */
.auth-form {
    display: grid;
    gap: 1rem;
}

.auth-field__label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--af-ink-muted);
}

.auth-field__wrap {
    position: relative;
}

.auth-field__icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: #a8a29e;
    pointer-events: none;
    transition: color 0.2s;
}

.auth-field__wrap:focus-within .auth-field__icon {
    color: var(--af-accent);
}

.auth-field__input {
    width: 100%;
    padding: 0.95rem 1rem 0.95rem 2.85rem;
    font-family: inherit;
    font-size: 1rem;
    color: var(--af-ink);
    background: #fafaf9;
    border: 1.5px solid #e7e5e4;
    border-radius: 14px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-field__input::placeholder {
    color: #a8a29e;
}

.auth-field__input:focus {
    border-color: var(--af-accent);
    box-shadow: 0 0 0 4px var(--af-accent-soft);
    background: #fff;
}

.auth-field__input--password {
    padding-right: 3rem;
}

.auth-field__toggle {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: #a8a29e;
    cursor: pointer;
    display: grid;
    place-items: center;
}

.auth-field__toggle:hover {
    color: var(--af-accent);
    background: var(--af-accent-soft);
}

.auth-form__row {
    display: flex;
    justify-content: flex-end;
    margin-top: -0.25rem;
}

/* --- Кнопки и ссылки --- */
.auth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 52px;
    margin-top: 0.25rem;
    padding: 0.85rem 1.25rem;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.2s, filter 0.2s;
}

.auth-btn--primary {
    color: #fff;
    background: linear-gradient(135deg, #0891b2 0%, var(--af-accent) 55%, #67e8f9 100%);
    box-shadow: 0 4px 24px var(--af-accent-glow);
}

.auth-btn--primary:hover:not(:disabled) {
    transform: translateY(-1px);
    filter: brightness(1.04);
    box-shadow: 0 8px 32px var(--af-accent-glow);
}

.auth-btn--primary:active:not(:disabled) {
    transform: translateY(0);
}

.auth-btn--primary:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    box-shadow: none;
}

.auth-btn__idle,
.auth-btn__busy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.auth-btn__busy { display: none; }

.auth-btn.is-busy .auth-btn__idle { display: none; }
.auth-btn.is-busy .auth-btn__busy { display: inline-flex; }

.auth-btn__spinner {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2.5px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    animation: af-spin 0.7s linear infinite;
}

@keyframes af-spin {
    to { transform: rotate(360deg); }
}

.auth-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--af-accent);
    text-decoration: none;
    transition: color 0.2s;
}

.auth-link:hover {
    color: #67e8f9;
}

.auth-link--button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
}

/* --- Код --- */
.auth-code {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 0.5rem 0 0.25rem;
}

.auth-code__box {
    width: 52px;
    height: 58px;
    text-align: center;
    font-family: inherit;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--af-ink);
    background: #fafaf9;
    border: 2px solid #e7e5e4;
    border-radius: 14px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
    caret-color: var(--af-accent);
}

.auth-code__box:focus {
    border-color: var(--af-accent);
    box-shadow: 0 0 0 4px var(--af-accent-soft);
    transform: translateY(-2px);
    background: #fff;
}

.auth-code__box:not(:placeholder-shown) {
    border-color: rgba(249, 115, 22, 0.45);
    background: #fff;
}

/* --- Соцсети --- */
.auth-social {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid #f5f5f4;
}

.auth-social__title {
    margin: 0 0 0.65rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--af-ink-muted);
    text-align: center;
}

.auth-social__list {
    display: grid;
    gap: 0.5rem;
}

.auth-social__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 44px;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    border: 1.5px solid #e7e5e4;
    background: #fafaf9;
    color: var(--af-ink);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: border-color 0.2s, background 0.2s;
}

.auth-social__btn:hover {
    border-color: var(--af-accent);
    background: #fff;
}

.auth-social__btn .material-icons {
    font-size: 1.1rem;
}

.auth-social__btn--disabled {
    opacity: 0.65;
    pointer-events: none;
}

/* --- Footer --- */
.auth-flow__footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.35rem 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid #f5f5f4;
}

.auth-flow__footer a {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--af-ink-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.auth-flow__footer a:hover {
    color: var(--af-accent);
}

.auth-flow__footer a .material-icons {
    font-size: 1rem;
}

.auth-flow__footer--actions {
    border-top: none;
    padding-top: 0.5rem;
}

.auth-flow__footer-sep {
    color: #d6d3d1;
}

.auth-inline-form {
    display: inline;
    margin: 0;
}

/* --- Успешный вход --- */
.auth-success__ring {
    position: relative;
    width: 88px;
    height: 88px;
    margin: 0 auto 1.35rem;
}

.auth-success__ring-pulse {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.25) 0%, transparent 70%);
    animation: af-pulse 2s ease-in-out infinite;
}

.auth-success__check {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #16a34a, var(--af-success));
    color: #fff;
    box-shadow: 0 8px 32px rgba(34, 197, 94, 0.4);
    animation: af-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.auth-success__check .material-icons {
    font-size: 2.5rem;
}

.auth-success__title {
    margin: 0 0 0.5rem;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--af-ink);
}

.auth-success__text {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.55;
    color: var(--af-ink-muted);
}

.auth-success__text strong {
    color: var(--af-ink);
}

.auth-success__progress {
    margin: 1.35rem 0 0.75rem;
    height: 4px;
    border-radius: 4px;
    background: #f5f5f4;
    overflow: hidden;
}

.auth-success__progress-bar {
    display: block;
    height: 100%;
    width: 35%;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--af-accent), #0891b2);
    animation: af-progress 1.4s ease-in-out infinite;
}

.auth-success__hint {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--af-ink-muted);
}

@keyframes af-pulse {
    0%, 100% { transform: scale(0.92); opacity: 0.6; }
    50% { transform: scale(1.08); opacity: 1; }
}

@keyframes af-pop {
    from { transform: scale(0.5); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes af-progress {
    0% { transform: translateX(-110%); }
    100% { transform: translateX(320%); }
}

/* --- Адаптив --- */
@media (max-width: 900px) {
    .auth-flow__layout,
    .auth-flow__layout--narrow {
        grid-template-columns: 1fr;
        max-width: 440px;
    }

    .auth-flow__hero {
        text-align: center;
    }

    .auth-flow__hero-text {
        max-width: none;
        margin-left: auto;
        margin-right: auto;
    }

    .auth-flow__features {
        justify-items: center;
    }
}

@media (max-width: 400px) {
    .auth-flow__card {
        padding: 1.5rem 1.25rem;
        border-radius: 18px;
    }

    .auth-code__box {
        width: 46px;
        height: 52px;
        font-size: 1.35rem;
    }

    .auth-code {
        gap: 0.35rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .auth-flow__orb,
    .auth-success__ring-pulse,
    .auth-success__progress-bar,
    .auth-btn__spinner {
        animation: none !important;
    }

    .auth-success__check {
        animation: none;
    }
}

/* ============================================================
   Страница входа — центрированная карточка
   ============================================================ */

.auth-flow--login {
    background: #11100f;
}

.auth-flow--login .auth-flow__ambient .auth-flow__orb {
    display: none;
}

.auth-flow__gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 55% at 50% -10%, rgba(249, 115, 22, 0.22) 0%, transparent 55%),
        radial-gradient(ellipse 50% 40% at 100% 100%, rgba(20, 184, 166, 0.1) 0%, transparent 50%),
        linear-gradient(180deg, #161412 0%, #0c0a09 45%, #0a0908 100%);
}

.auth-flow__noise {
    position: absolute;
    inset: 0;
    opacity: 0.35;
    background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.035) 1px, transparent 0);
    background-size: 24px 24px;
}

.auth-flow__page--login {
    align-items: center;
    justify-content: center;
    padding-top: max(1.5rem, env(safe-area-inset-top));
    padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
}

.auth-login-panel {
    width: 100%;
    max-width: 440px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.auth-login-panel__card {
    width: 100%;
    background: #ffffff;
    color: var(--af-ink);
    border-radius: 24px;
    padding: 2rem 1.85rem 1.65rem;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.04),
        0 32px 64px -24px rgba(0, 0, 0, 0.65),
        0 0 0 1px rgba(249, 115, 22, 0.06) inset;
}

.auth-login-panel__head {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.15rem;
    margin-bottom: 1.35rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #f5f5f4;
}

.auth-login-panel__card .auth-steps__list {
    background: #fafaf9;
    border-color: #e7e5e4;
    backdrop-filter: none;
}

.auth-login-panel__card .auth-steps__dot {
    background: #fff;
    border-color: #e7e5e4;
    color: #a8a29e;
}

.auth-login-panel__card .auth-steps__item--active .auth-steps__dot {
    background: linear-gradient(135deg, #0891b2, var(--af-accent));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 14px rgba(249, 115, 22, 0.35);
}

.auth-login-panel__card .auth-steps__item--done .auth-steps__dot {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.35);
    color: #16a34a;
}

.auth-login-panel__card .auth-steps__label {
    color: #a8a29e;
}

.auth-login-panel__card .auth-steps__item--active .auth-steps__label {
    color: var(--af-ink);
}

.auth-login-panel__card .auth-steps__line {
    background: #e7e5e4;
}

.auth-login-panel__card .auth-steps__line--done {
    background: linear-gradient(90deg, #22c55e, rgba(34, 197, 94, 0.35));
}

.auth-login-panel__intro {
    margin-bottom: 1.25rem;
    text-align: center;
}

.auth-login-panel__title {
    margin: 0 0 0.45rem;
    font-family: var(--af-display);
    font-size: 1.375rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--af-ink);
}

.auth-login-panel__lead {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.55;
    color: var(--af-ink-muted);
}

.auth-login-panel__features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem;
    list-style: none;
    margin: 1.25rem 0 0;
    padding: 0;
}

.auth-login-panel__features li {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #78716c;
    background: #fafaf9;
    border: 1px solid #f5f5f4;
}

.auth-login-panel__features .material-icons {
    font-size: 0.95rem;
    color: var(--af-accent);
}

.auth-login-panel__copyright {
    margin: 0;
    font-size: 0.75rem;
    color: #57534e;
    letter-spacing: 0.02em;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.15rem 0 0.85rem;
    color: #a8a29e;
    font-size: 0.8125rem;
    font-weight: 500;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #f5f5f4;
}

.auth-social--compact {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.auth-social--compact .auth-social__list {
    grid-template-columns: 1fr;
}

.auth-flow__footer--compact {
    margin-top: 1.15rem;
    padding-top: 1rem;
    gap: 0.5rem 1rem;
}

.auth-flow__footer--compact a {
    font-size: 0.75rem;
}

@media (max-width: 480px) {
    .auth-login-panel__card {
        padding: 1.65rem 1.35rem 1.35rem;
        border-radius: 20px;
    }

    .auth-login-panel__title {
        font-size: 1.25rem;
    }

    .auth-brand--card .auth-brand__img {
        height: 36px;
    }
}
