/* Страницы входа и регистрации */

.auth-body {
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    font-family: Montserrat, "Segoe UI", sans-serif;
    color: var(--text-main, #172033);
    background: #F5F7FB;
    -webkit-font-smoothing: antialiased;
}

.auth-shell {
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

.auth-visual {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px;
    color: #fff;
    background:
        linear-gradient(160deg, rgba(17, 24, 39, 0.55) 0%, rgba(37, 99, 235, 0.72) 55%, rgba(29, 78, 216, 0.88) 100%),
        var(--auth-hero, url('https://images.unsplash.com/photo-1573804941575-58e6266d4878?auto=format&fit=crop&w=1400&q=80')) center / cover no-repeat;
    overflow: hidden;
}

.auth-visual::before {
    content: "";
    position: absolute;
    inset: auto -20% -30% auto;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    filter: blur(2px);
}

.auth-visual-inner {
    position: relative;
    z-index: 1;
    max-width: 460px;
}

.auth-visual h2 {
    margin: 0 0 12px;
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.auth-visual p {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    opacity: 0.92;
    max-width: 380px;
}

.auth-visual-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.auth-visual-badges span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(8px);
    font-size: 13px;
    font-weight: 600;
}

.auth-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 24px max(32px, env(safe-area-inset-bottom));
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.08), transparent 42%),
        #F5F7FB;
}

.auth-panel-inner {
    width: min(440px, 100%);
}

.auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
    color: var(--primary, #2563EB);
    text-decoration: none;
    font-size: 22px;
    font-weight: 800;
}

.auth-brand img {
    display: block;
    height: 44px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}

.auth-brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary, #2563EB);
    color: #fff;
    font-weight: 800;
    font-size: 18px;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.28);
}

.auth-card {
    background: #fff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 24px;
    box-shadow: 0 18px 48px rgba(23, 32, 51, 0.08);
    padding: 28px 28px 24px;
}

.auth-card h1 {
    margin: 0 0 8px;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.auth-lead {
    margin: 0 0 22px;
    color: var(--text-muted, #718096);
    font-size: 14px;
    line-height: 1.55;
}

.auth-card .alert {
    margin-bottom: 16px;
}

.auth-card .form-field {
    margin-bottom: 14px;
}

.auth-card .form-field span {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 650;
}

.auth-card .form-field input {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    background: #fff;
    color: var(--text-main, #172033);
    font-size: 15px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth-card .form-field input:focus {
    outline: none;
    border-color: var(--primary, #2563EB);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.auth-password {
    position: relative;
}

.auth-password input {
    padding-right: 48px;
}

.auth-toggle-pass {
    position: absolute;
    right: 8px;
    bottom: 8px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--text-muted, #718096);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.auth-toggle-pass:hover {
    background: #F5F7FB;
    color: var(--primary, #2563EB);
}

.auth-toggle-pass svg,
.auth-toggle-pass i {
    width: 18px;
    height: 18px;
}

.auth-hints {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: -4px 0 16px;
}

.auth-hint {
    font-size: 12px;
    color: var(--text-muted, #718096);
    background: #F8FAFC;
    border-radius: 999px;
    padding: 5px 10px;
}

.auth-submit {
    width: 100%;
    margin-top: 4px;
    padding: 13px 18px;
    border: 0;
    border-radius: 14px;
    background: var(--primary, #2563EB);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.25);
    transition: transform 0.15s ease, background 0.15s ease;
}

.auth-submit:hover {
    background: var(--primary-hover, #1D4ED8);
}

.auth-submit:active {
    transform: scale(0.985);
}

.auth-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    box-shadow: none;
}

.auth-switch {
    margin: 18px 0 0;
    text-align: center;
    font-size: 14px;
    color: var(--text-muted, #718096);
}

.auth-switch a {
    color: var(--primary, #2563EB);
    font-weight: 700;
    text-decoration: none;
}

.auth-switch a:hover {
    text-decoration: underline;
}

.auth-footer-note {
    margin: 18px 0 0;
    text-align: center;
    color: var(--text-muted, #718096);
    font-size: 12px;
}

.auth-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 16px;
    font-size: 13px;
    color: var(--text-muted, #718096);
    line-height: 1.45;
}

.auth-check input {
    margin-top: 2px;
}

.auth-strength {
    height: 4px;
    border-radius: 999px;
    background: #E2E8F0;
    overflow: hidden;
    margin: -6px 0 14px;
}

.auth-strength > span {
    display: block;
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: #EF4444;
    transition: width 0.2s ease, background 0.2s ease;
}

.auth-strength.is-weak > span { width: 33%; background: #EF4444; }
.auth-strength.is-medium > span { width: 66%; background: #F59E0B; }
.auth-strength.is-strong > span { width: 100%; background: #10B981; }

@media (max-width: 960px) {
    .auth-shell {
        grid-template-columns: 1fr;
    }

    .auth-visual {
        min-height: 220px;
        padding: 28px 24px;
        justify-content: flex-end;
    }

    .auth-visual h2 {
        font-size: 30px;
    }

    .auth-visual-badges {
        display: none;
    }

    .auth-panel {
        padding: 20px 16px 28px;
        align-items: flex-start;
    }

    .auth-card {
        border-radius: 20px;
        padding: 22px 18px 18px;
        box-shadow: 0 10px 28px rgba(23, 32, 51, 0.06);
    }

    .auth-brand {
        margin-bottom: 18px;
    }
}

@media (max-width: 480px) {
    .auth-visual {
        min-height: 180px;
        padding: 22px 18px;
    }

    .auth-card h1 {
        font-size: 24px;
    }
}
