/* Вход и регистрация FlagRu — в стиле новой корзины */

#auth-page {
    --auth-text: #172033;
    --auth-muted: #6b7280;
    --auth-line: #e8ecf2;
    --auth-primary: #1a56db;
    --auth-primary-dark: #1546b5;
    --auth-accent: #d51932;
    --auth-alt: #f5f7fa;
    --auth-radius: 20px;

    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 36px 20px 72px;
    color: var(--auth-text);
    font-size: 15px;
    line-height: 1.5;
}

#auth-page *,
#auth-page *::before,
#auth-page *::after {
    box-sizing: border-box;
}

#auth-page a {
    text-decoration: none;
}

#auth-page button,
#auth-page input {
    font-family: inherit;
}

#auth-page .auth-breadcrumbs {
    margin-bottom: 20px;
    color: var(--auth-muted);
    font-size: 13px;
}

#auth-page .auth-breadcrumbs a {
    color: var(--auth-muted);
}

#auth-page .auth-breadcrumbs a:hover {
    color: var(--auth-primary);
}

#auth-page .auth-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 440px);
    gap: 28px;
    align-items: start;
}

#auth-page .auth-intro {
    padding: 24px 12px 0 0;
}

#auth-page .auth-eyebrow {
    margin-bottom: 12px;
    color: var(--auth-primary);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

#auth-page .auth-title {
    margin: 0;
    font-size: clamp(30px, 3.6vw, 44px);
    line-height: 1.08;
    font-weight: 700;
    letter-spacing: -0.025em;
}

#auth-page .auth-subtitle {
    max-width: 560px;
    margin: 14px 0 0;
    color: var(--auth-muted);
    font-size: 15px;
}

#auth-page .auth-benefits {
    display: grid;
    gap: 10px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

#auth-page .auth-benefits li {
    position: relative;
    padding-left: 28px;
    color: #3f4b5f;
    font-size: 14px;
}

#auth-page .auth-benefits li::before {
    content: "";
    position: absolute;
    top: 3px;
    left: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #eef4ff;
    box-shadow: inset 0 0 0 5px #dbe8ff;
}

#auth-page .auth-card {
    padding: 28px;
    border-radius: var(--auth-radius);
    background: #fff;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
}

#auth-page .auth-card h2 {
    margin: 0;
    font-size: 22px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.02em;
}

#auth-page .auth-card-subtitle {
    margin: 8px 0 20px;
    color: var(--auth-muted);
    font-size: 13px;
}

#auth-page .auth-alert {
    margin-bottom: 18px;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 13px;
}

#auth-page .auth-alert--error {
    background: #fff1f2;
    color: #9f1239;
}

#auth-page .auth-alert--success {
    background: #ecfdf3;
    color: #166534;
}

#auth-page .auth-alert ul {
    margin: 0;
    padding-left: 18px;
}

#auth-page .auth-field {
    margin-bottom: 16px;
}

#auth-page .auth-field label {
    display: block;
    margin-bottom: 7px;
    color: #374151;
    font-size: 13px;
    font-weight: 600;
}

#auth-page .auth-input {
    display: block;
    width: 100%;
    height: 50px;
    padding: 0 15px;
    border: 1px solid var(--auth-line);
    border-radius: 12px;
    background: #fff;
    color: var(--auth-text);
    font-size: 15px;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

#auth-page .auth-input::placeholder {
    color: #9aa3b2;
}

#auth-page .auth-input:focus {
    border-color: #9db8ff;
    box-shadow: 0 0 0 4px rgba(26, 86, 219, 0.10);
}

#auth-page .auth-input[disabled] {
    background: var(--auth-alt);
    color: #8b93a1;
}

#auth-page .auth-code-input {
    max-width: 200px;
    padding-left: 0.42em;
    font-size: 21px;
    font-weight: 700;
    letter-spacing: 0.42em;
    text-align: center;
}

#auth-page .auth-hint {
    margin-top: 7px;
    color: var(--auth-muted);
    font-size: 12px;
}

#auth-page .auth-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
    border: 0;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

#auth-page .auth-btn:hover {
    transform: translateY(-1px);
}

#auth-page .auth-btn[disabled] {
    opacity: 0.55;
    cursor: default;
    transform: none;
}

#auth-page .auth-btn--primary {
    width: 100%;
    background: var(--auth-primary);
    color: #fff;
}

#auth-page .auth-btn--primary:hover {
    background: var(--auth-primary-dark);
}

#auth-page .auth-btn--secondary {
    width: 100%;
    margin-bottom: 18px;
    background: #eef4ff;
    color: var(--auth-primary);
}

#auth-page .auth-btn--secondary:hover {
    background: #e3edff;
}

#auth-page .auth-links {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--auth-line);
    color: var(--auth-muted);
    font-size: 13px;
    text-align: center;
}

#auth-page .auth-links a {
    color: var(--auth-primary);
    font-weight: 700;
}

#auth-page .auth-links a:hover {
    color: var(--auth-primary-dark);
    text-decoration: underline;
}

#auth-page .auth-links-muted {
    margin-top: 10px;
    font-size: 12px;
}

#auth-page .auth-links-muted a {
    color: var(--auth-muted);
    font-weight: 600;
}

#auth-page .auth-note {
    margin: 18px 0 0;
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--auth-alt);
    color: #52627a;
    font-size: 12px;
    line-height: 1.45;
}

#auth-page .auth-success-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: #ecfdf3;
    color: #16a34a;
    font-size: 28px;
    font-weight: 700;
}

#auth-page .auth-success-card {
    max-width: 620px;
    margin: 0 auto;
    text-align: center;
}

#auth-page .auth-success-card .auth-card-subtitle {
    margin-bottom: 22px;
}

@media (max-width: 900px) {
    #auth-page .auth-layout {
        grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    #auth-page {
        padding: 24px 16px 48px;
    }

    #auth-page .auth-layout {
        grid-template-columns: 1fr;
    }

    #auth-page .auth-intro {
        padding: 0;
    }

    #auth-page .auth-title {
        font-size: 30px;
    }

    #auth-page .auth-card {
        padding: 22px;
    }

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