.auth-page {
    min-height: 100vh;
    color: #fff;
    background:
        radial-gradient(circle at 18% 18%, rgba(255, 141, 118, 0.16), transparent 24%),
        radial-gradient(circle at 82% 22%, rgba(212, 90, 224, 0.18), transparent 26%),
        radial-gradient(circle at 72% 78%, rgba(122, 92, 255, 0.14), transparent 28%),
        linear-gradient(135deg, #050a1f 0%, #0d1331 36%, #19143f 100%);
}

.auth-page .page-glow {
    position: fixed;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.35;
    pointer-events: none;
    z-index: 0;
}
.auth-page .page-glow-left {
    top: 90px;
    left: -120px;
    background: rgba(255, 127, 127, 0.32);
}
.auth-page .page-glow-right {
    right: -120px;
    bottom: 40px;
    background: rgba(159, 92, 255, 0.34);
}

.auth-main {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(320px, 1.1fr) minmax(320px, 0.9fr);
    align-items: center;
    gap: 32px;
    min-height: calc(100vh - 78px);
    padding: 36px 0 54px;
}

.auth-showcase,
.auth-box {
    border-radius: 32px;
    padding: 34px;
}

.auth-showcase {
    position: relative;
    overflow: hidden;
    min-height: 580px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background:
        linear-gradient(180deg, rgba(7, 10, 28, 0.18), rgba(7, 10, 28, 0.82)),
        radial-gradient(circle at 50% 20%, rgba(255,255,255,0.12), transparent 22%),
        url('https://images.unsplash.com/photo-1578632767115-351597cf2477?auto=format&fit=crop&w=1200&q=80') center/cover no-repeat;
    box-shadow: 0 30px 70px rgba(0,0,0,0.28);
}

.auth-showcase.register-showcase {
    background:
        linear-gradient(180deg, rgba(7, 10, 28, 0.18), rgba(7, 10, 28, 0.82)),
        radial-gradient(circle at 50% 20%, rgba(255,255,255,0.12), transparent 22%),
        url('https://images.unsplash.com/photo-1541562232579-512a21360020?auto=format&fit=crop&w=1200&q=80') center/cover no-repeat;
}

.auth-showcase::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(255,149,115,0.12), transparent 45%, rgba(192,113,255,0.18));
}

.auth-copy {
    position: relative;
    z-index: 1;
    max-width: 520px;
}

.auth-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.55rem 0.9rem;
    margin-bottom: 18px;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.84);
    font-weight: 600;
    font-size: 0.92rem;
}

.auth-copy h1 {
    margin: 0 0 16px;
    font-size: clamp(2.5rem, 4vw, 4.2rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
}
.auth-copy h1 span {
    color: #ff9db0;
}
.auth-copy p {
    margin: 0 0 28px;
    font-size: 1.08rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.82);
}

.auth-feature-list {
    display: grid;
    gap: 12px;
    margin: 0 0 90px;
    padding: 0;
    list-style: none;
}
.auth-feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255,255,255,0.88);
    font-size: 0.98rem;
}
.auth-feature-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff8d76, #d45ae0);
    box-shadow: 0 0 14px rgba(212, 90, 224, 0.38);
    flex: 0 0 auto;
}

.auth-box {
    position: relative;
}
.auth-box h2 {
    margin: 0 0 8px;
    font-size: 2rem;
    letter-spacing: -0.03em;
}
.auth-subtitle {
    margin: 0 0 24px;
    color: rgba(255,255,255,0.66);
    line-height: 1.6;
}

.auth-form {
    display: grid;
    gap: 18px;
}
.auth-form .form-group {
    margin: 0;
}
.auth-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
}
.auth-form input {
    width: 100%;
    min-height: 58px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05);
    color: #fff;
    padding: 0 18px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.auth-form input::placeholder {
    color: rgba(255,255,255,0.38);
}
.auth-form input:focus {
    border-color: rgba(255,157,176,0.7);
    background: rgba(255,255,255,0.08);
    box-shadow: 0 0 0 4px rgba(255,157,176,0.12);
}

.submit-btn {
    width: 100%;
    min-height: 58px;
    border: 0;
    cursor: pointer;
    border-radius: 18px;
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ff8d76 0%, #d45ae0 100%);
    box-shadow: 0 18px 35px rgba(212, 90, 224, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}
.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 42px rgba(212, 90, 224, 0.28);
}

.auth-link {
    margin: 22px 0 0;
    text-align: center;
    color: rgba(255,255,255,0.74);
}
.auth-link a {
    color: #ff9db0;
    font-weight: 700;
}

.auth-alert {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid transparent;
    line-height: 1.5;
}
.auth-alert.error {
    background: rgba(248, 78, 120, 0.12);
    border-color: rgba(248, 78, 120, 0.28);
    color: #ffd3df;
}
.auth-alert.success {
    background: rgba(54, 205, 145, 0.12);
    border-color: rgba(54, 205, 145, 0.24);
    color: #c4ffe4;
}

.auth-note {
    margin-top: 18px;
    color: rgba(255,255,255,0.58);
    font-size: 0.92rem;
    line-height: 1.6;
}

@media (max-width: 980px) {
    .auth-main {
        grid-template-columns: 1fr;
        padding-top: 24px;
    }
    .auth-showcase {
        min-height: 380px;
    }
}

@media (max-width: 640px) {
    .auth-main {
        width: min(1240px, calc(100% - 20px));
        gap: 20px;
        padding-bottom: 28px;
    }
    .auth-showcase,
    .auth-box {
        padding: 24px;
        border-radius: 24px;
    }
    .auth-copy h1 {
        font-size: 2.25rem;
    }
}

.remember-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 12px 0 18px;
    cursor: pointer;
    user-select: none;
    position: relative;
}

.remember-checkbox input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.custom-check {
    width: 20px;
    height: 20px;
    min-width: 20px;
    max-width: 20px;
    border-radius: 6px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.22);
    position: relative;
    display: inline-block;
    flex-shrink: 0;
    box-sizing: border-box;
    transition: all 0.25s ease;
}

.remember-checkbox:hover .custom-check {
    border-color: #ff7ac6;
    box-shadow: 0 0 10px rgba(255,122,198,0.35);
}

.custom-check::after {
    content: "";
    position: absolute;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    top: 48%;
    left: 50%;
    transform: translate(-50%, -58%) rotate(45deg);
    opacity: 0;
    transition: opacity 0.2s ease;
    box-sizing: border-box;
}

.remember-checkbox input:checked + .custom-check {
    background: linear-gradient(135deg, #ff7ac6, #8a6bff);
    border-color: transparent;
}

.remember-checkbox input:checked + .custom-check::after {
    opacity: 1;
}

.remember-text {
    color: #d8d8ef;
    font-size: 15px;
    font-weight: 600;
    line-height: 20px; /* = высоте чекбокса */
    display: flex;
    align-items: center;
}

.remember-checkbox:hover .remember-text {
    color: #fff;
}
