/* auth pages — enterprise split layout, light blue aesthetic */

.auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
}

/* left brand panel — vivid blue, echoes the ring's premium tone */

.auth-brand {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 54px 56px;
    color: #fff;
    background:
        radial-gradient(700px 520px at 12% 8%, rgba(99, 102, 241, 0.55), rgba(99, 102, 241, 0) 60%),
        radial-gradient(620px 560px at 88% 18%, rgba(236, 72, 153, 0.34), rgba(236, 72, 153, 0) 58%),
        radial-gradient(760px 620px at 78% 108%, rgba(14, 165, 233, 0.46), rgba(14, 165, 233, 0) 60%),
        radial-gradient(520px 520px at 24% 96%, rgba(16, 185, 129, 0.3), rgba(16, 185, 129, 0) 58%),
        linear-gradient(152deg, #0b1026, #141a3a 46%, #0d1430);
}

/* soft aurora blobs drifting behind the copy */
.auth-brand::before {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    top: -120px;
    right: -140px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.5), rgba(168, 85, 247, 0) 68%);
    filter: blur(14px);
    pointer-events: none;
    animation: auroraFloat 16s ease-in-out infinite alternate;
}

.auth-brand::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.5;
    pointer-events: none;
}

@keyframes auroraFloat {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(-40px, 50px) scale(1.12); }
}

.auth-brand > * { position: relative; z-index: 1; }

.auth-brand .brand {
    color: #fff;
    font-size: 17px;
}
.auth-brand .brand-mark {
    width: 32px;
    height: 32px;
    color: #fff;
}

.auth-brand-copy { max-width: 420px; }

.auth-brand-copy h2 {
    font-size: 34px;
    font-weight: 720;
    line-height: 1.25;
    letter-spacing: -0.01em;
    margin-bottom: 18px;
}

.auth-brand-copy p {
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 34px;
}

.auth-points { list-style: none; display: grid; gap: 16px; }

.auth-points li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14.5px;
    color: rgba(255, 255, 255, 0.92);
}

.auth-points .tick {
    flex: none;
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    margin-top: 1px;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.28);
}
.auth-points .tick svg { width: 13px; height: 13px; display: block; }

.auth-brand-foot {
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.6);
}

/* right form panel */

.auth-main {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 32px;
    background: var(--bg);
}

.auth-card {
    width: 100%;
    max-width: 400px;
}

.auth-card .brand {
    display: none;
    margin-bottom: 32px;
}

.auth-head { margin-bottom: 30px; }

.auth-head h1 {
    font-size: 27px;
    font-weight: 720;
    letter-spacing: -0.015em;
    color: var(--ink-head);
    margin-bottom: 8px;
}

.auth-head p { font-size: 14.5px; color: var(--ink-soft); }
.auth-head p a { color: var(--accent-ink); font-weight: 600; }
.auth-head p a:hover { text-decoration: underline; }

/* form */

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

.field { display: grid; gap: 7px; }

.field > label {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-head);
}

.input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrap .ico {
    position: absolute;
    left: 14px;
    display: grid;
    place-items: center;
    color: #9aa1b2;
    pointer-events: none;
}
.input-wrap .ico svg { width: 18px; height: 18px; display: block; }

.input-wrap input {
    width: 100%;
    font-size: 14.5px;
    font-family: inherit;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 12px 14px 12px 42px;
    transition: border-color .18s ease, box-shadow .18s ease;
}
.input-wrap input::placeholder { color: #aab0bf; }
.input-wrap input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}
.input-wrap input.has-error {
    border-color: #e0484d;
}
.input-wrap input.has-error:focus {
    box-shadow: 0 0 0 3px rgba(224, 72, 77, 0.14);
}

.pw-toggle {
    position: absolute;
    right: 10px;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border: 0;
    background: transparent;
    color: #9aa1b2;
    cursor: pointer;
    border-radius: 8px;
    transition: color .15s ease, background-color .15s ease;
}
.pw-toggle:hover { color: var(--ink); background: var(--bg-alt); }
.pw-toggle svg { width: 18px; height: 18px; display: block; }

.field-error {
    font-size: 12.5px;
    color: #d7373c;
}

.form-aux {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
}

.check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ink-soft);
    cursor: pointer;
    user-select: none;
}
.check input {
    width: 16px;
    height: 16px;
    accent-color: var(--accent);
    cursor: pointer;
}

.auth-form .btn-fill {
    justify-content: center;
    width: 100%;
    padding: 13px 20px;
    margin-top: 2px;
}

.alert-error {
    display: flex;
    gap: 10px;
    font-size: 13.5px;
    color: #a62126;
    background: #fdecec;
    border: 1px solid #f6c9ca;
    border-radius: var(--radius-sm);
    padding: 11px 14px;
}
.alert-error svg { flex: none; width: 17px; height: 17px; margin-top: 1px; }

.auth-foot-note {
    margin-top: 26px;
    font-size: 12.5px;
    color: var(--ink-soft);
    text-align: center;
    line-height: 1.6;
}
.auth-foot-note a { color: var(--accent-ink); }
.auth-foot-note a:hover { text-decoration: underline; }

.back-home {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--ink-soft);
    margin-bottom: 28px;
    transition: color .15s ease;
}
.back-home:hover { color: var(--ink); }
.back-home svg { width: 15px; height: 15px; }

@media (max-width: 860px) {
    .auth-shell { grid-template-columns: 1fr; }
    .auth-brand { display: none; }
    .auth-card .brand { display: flex; }
}
