:root {
    --brand-blue: #2563eb;
    --brand-blue-dark: #1d4ed8;
    --brand-orange: #ff7a18;
    --brand-text: #0f172a;
    --brand-muted: #64748b;
    --transition: all 0.25s ease;
}

body.auth-page {
    margin: 0;
    min-height: 100vh;
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    background: radial-gradient(circle at 0% 0%, rgba(37, 99, 235, 0.35), transparent 50%),
                radial-gradient(circle at 100% 10%, rgba(255, 122, 24, 0.28), transparent 55%),
                #f5f7fb;
    color: var(--brand-text);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    position: relative;
    overflow: hidden;
}

body.auth-page::before,
body.auth-page::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.55;
}

body.auth-page::before {
    width: 480px;
    height: 480px;
    background: rgba(37, 99, 235, 0.35);
    top: -140px;
    left: -120px;
}

body.auth-page::after {
    width: 360px;
    height: 360px;
    background: rgba(255, 122, 24, 0.28);
    bottom: -160px;
    right: -120px;
}

.auth-shell {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    width: min(1100px, 100%);
    background: rgba(255, 255, 255, 0.86);
    border-radius: 30px;
    border: 1px solid rgba(37, 99, 235, 0.18);
    box-shadow: 0 45px 90px rgba(15, 23, 42, 0.18);
    backdrop-filter: blur(18px);
    overflow: hidden;
}

.auth-showcase {
    position: relative;
    padding: 64px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.92), rgba(29, 78, 216, 0.9) 55%, rgba(255, 122, 24, 0.86));
    color: #f8fafc;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.auth-showcase::after {
    content: '';
    position: absolute;
    inset: 40px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    opacity: 0.4;
}

.auth-showcase__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.auth-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth-title {
    font-size: clamp(2rem, 3vw, 2.8rem);
    line-height: 1.2;
    margin: 0;
    font-weight: 700;
}

.auth-subtitle {
    margin: 0;
    font-size: 1rem;
    color: rgba(241, 245, 249, 0.8);
    line-height: 1.7;
}

.auth-highlights {
    display: grid;
    gap: 18px;
    margin-top: 20px;
}

.auth-highlight {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.auth-highlight span:first-child {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.18);
    display: grid;
    place-items: center;
    font-size: 1.1rem;
}

.auth-highlight span:last-child {
    flex: 1;
    font-size: 0.95rem;
    color: rgba(241, 245, 249, 0.85);
}

.auth-contact {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: stretch;
    gap: 20px;
    margin-top: 26px;
}

.auth-contact__channels {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 210px;
}

.contact-card {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.12);
    color: rgba(241, 245, 249, 0.92);
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.contact-card:hover,
.contact-card:focus {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.24);
}

.contact-card__icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.25);
    display: grid;
    place-items: center;
}

.contact-card__label {
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(226, 232, 240, 0.68);
}

.contact-card__value {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
}

.contact-card__badge {
    justify-self: end;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    background: rgba(37, 99, 235, 0.22);
    color: #fff;
}

.auth-contact__qr {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(15, 23, 42, 0.16);
    text-align: center;
}

.auth-contact__qr img {
    width: 110px;
    border-radius: 10px;
    background: #fff;
    padding: 5px;
    border: 1px solid rgba(37, 99, 235, 0.25);
}

.auth-card {
    padding: 44px 40px;
    display: flex;
    flex-direction: column;
    gap: 22px;
    max-width: 520px;
    width: 100%;
}

.auth-card__header {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth-card__title {
    margin: 0;
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--brand-text);
}

.auth-card__subtitle {
    margin: 0;
    font-size: 0.95rem;
    color: var(--brand-muted);
}

.auth-card__title {
    margin: 0;
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--brand-text);
}

.auth-card__subtitle {
    margin: 0;
    font-size: 0.95rem;
    color: var(--brand-muted);
}

.auth-form {
    display: grid;
    gap: 18px;
}

.auth-form label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--brand-text);
    margin-bottom: 6px;
}

.auth-input {
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid rgba(37, 99, 235, 0.2);
    background: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
    color: var(--brand-text);
    min-height: 44px;
}

.auth-input:focus {
    outline: none;
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

.auth-password {
    position: relative;
}

.auth-password button {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    border: none;
    background: none;
    color: var(--brand-muted);
    cursor: pointer;
}

.auth-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--brand-muted);
}

.auth-meta a {
    color: var(--brand-blue);
}

.auth-button {
    width: 100%;
    padding: 16px;
    border-radius: 16px;
    border: none;
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-orange));
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 24px 46px rgba(37, 99, 235, 0.25);
}

.auth-error,
.auth-notice {
    padding: 14px;
    border-radius: 14px;
    font-size: 0.9rem;
}

.auth-error {
    border: 1px solid rgba(239, 68, 68, 0.4);
    background: rgba(239, 68, 68, 0.12);
    color: #b91c1c;
}

.auth-success {
    border: 1px solid rgba(34, 197, 94, 0.35);
    background: rgba(34, 197, 94, 0.14);
    color: #166534;
}

.auth-notice {
    border: 1px solid rgba(37, 99, 235, 0.28);
    background: rgba(37, 99, 235, 0.1);
    color: var(--brand-blue);
}

.form-grid-two {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    align-items: start;
}

.form-grid-codes {
    align-items: stretch;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.form-required {
    color: #ef4444;
    font-size: 0.8rem;
    margin-left: 4px;
    font-weight: 600;
}

.verify-options {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    color: var(--brand-muted);
    font-size: 0.9rem;
}

.verify-options input {
    margin-right: 6px;
    accent-color: var(--brand-blue);
}

.verify-code-field {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
}

.btn-send-code {
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid rgba(37, 99, 235, 0.24);
    background: rgba(37, 99, 235, 0.12);
    color: var(--brand-blue);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    font-size: 0.95rem;
}

.btn-send-code:hover {
    background: rgba(37, 99, 235, 0.18);
    color: var(--brand-blue-dark);
}

.btn-send-code:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.form-hint {
    margin-top: 6px;
    font-size: 0.82rem;
    color: var(--brand-muted);
}

.form-actions-vertical {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 6px;
}

.auth-field-error {
    margin-top: 6px;
    font-size: 0.8rem;
    color: #b91c1c;
}

.captcha-field {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(110px, auto) 44px;
    gap: 10px;
    align-items: center;
}

.captcha-image {
    height: 44px;
    width: 100%;
    max-width: 120px;
    border-radius: 12px;
    border: 1px solid rgba(37, 99, 235, 0.22);
    background: #fff;
    cursor: pointer;
}

.captcha-refresh {
    padding: 12px 0;
    width: 44px;
    border-radius: 12px;
    border: none;
    background: rgba(37, 99, 235, 0.12);
    color: var(--brand-blue);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.captcha-refresh:hover {
    background: rgba(37, 99, 235, 0.2);
    color: var(--brand-blue-dark);
}

.auth-footer {
    text-align: center;
    font-size: 0.9rem;
    color: var(--brand-muted);
}

.auth-footer a {
    color: var(--brand-blue);
    font-weight: 600;
}

@media (max-width: 960px) {
    .auth-shell {
        grid-template-columns: 1fr;
    }
    .auth-showcase {
        padding: 48px;
    }
}

@media (max-width: 640px) {
    .auth-showcase {
        padding: 32px;
    }
    .auth-card {
        padding: 32px 24px;
    }
    .captcha-field {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .form-grid-two {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .form-grid-codes {
        grid-template-columns: 1fr;
    }
    .verify-code-field {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .verify-code-field .btn-send-code,
    .captcha-field .captcha-image,
    .captcha-field .captcha-refresh {
        width: 100%;
    }
    .auth-contact {
        flex-direction: column;
        gap: 16px;
    }
    .auth-contact__channels {
        width: 100%;
    }
    .auth-contact__qr {
        width: 100%;
        justify-items: center;
    }
}
