/* Log in and sign up: brand panel + form card, in the Practice Center style. */

.auth { display: grid; grid-template-columns: 1fr 1.1fr; max-width: 1040px; margin: 8px auto 0; border-radius: 26px; overflow: hidden;
    background: var(--surface); border: 1px solid var(--rule); box-shadow: 0 20px 46px -30px rgba(15, 23, 42, .5); }

/* Brand panel */
.auth-panel { position: relative; padding: 42px 40px; color: #fff; overflow: hidden;
    background: radial-gradient(120% 80% at 100% 0%, rgba(255, 255, 255, .18), transparent 55%),
                linear-gradient(150deg, var(--accent), var(--accent-ink)); }
.auth-panel::after { content: ""; position: absolute; right: -80px; bottom: -80px; width: 260px; height: 260px; border-radius: 50%;
    background: rgba(255, 255, 255, .08); }
.auth-logo { width: 46px; height: 46px; color: #fff; margin-bottom: 26px; }
.auth-panel h2 { color: #fff; font-size: 1.9rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; margin: 0 0 .6rem; }
.auth-panel p { color: rgba(255, 255, 255, .85); font-size: 1.02rem; margin: 0 0 26px; }
.auth-perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; position: relative; z-index: 1; }
.auth-perks li { display: flex; align-items: center; gap: 14px; font-weight: 500; }
.auth-perks span { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .16); }
.auth-perks .ic { width: 20px; height: 20px; color: #fff; }

/* Form card */
.auth-card { padding: 40px 42px; }
.auth-ic { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 14px;
    background: color-mix(in srgb, var(--accent) 12%, var(--surface)); color: var(--accent-ink); }
.auth-ic .ic { width: 28px; height: 28px; }
.auth-card h1 { font-size: 1.9rem; font-weight: 800; letter-spacing: -.02em; margin: 0; }
.auth-sub { color: var(--muted); margin: .3rem 0 1.4rem; }
.auth-card .alert { border-radius: 12px; margin-bottom: 16px; }

.auth-field { margin-bottom: 16px; }
.auth-field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--ink); }
.auth-input { position: relative; display: block; }
.auth-input .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.auth-input input { width: 100%; height: 50px; padding: 0 14px 0 44px; border-radius: 14px; border: 1.5px solid var(--rule);
    background: var(--paper); color: var(--ink); font: 400 1rem var(--sans); transition: border-color .15s, box-shadow .15s, background .15s; }
.auth-input input::placeholder { color: var(--faint); }
.auth-input input:focus { outline: none; border-color: var(--accent); background: var(--surface);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent); }
.auth-input:focus-within .ic { color: var(--accent); }
.auth-input.bad input { border-color: var(--bad); }
.auth-field .error-text { margin-top: 6px; font-size: .85rem; }
.auth-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }

.auth-submit { width: 100%; height: 52px; margin-top: 6px; border-radius: 14px; font-size: 1.05rem; font-weight: 700;
    box-shadow: 0 12px 24px -12px color-mix(in srgb, var(--accent) 75%, transparent); }
.auth-switch { text-align: center; margin: 1.2rem 0 0; color: var(--ink-2); }
.auth-switch a { font-weight: 600; text-decoration: none; }
.auth-switch a:hover { text-decoration: underline; }

@media (max-width: 860px) {
    .auth { grid-template-columns: 1fr; }
    .auth-panel { padding: 28px 24px; }
    .auth-panel h2 { font-size: 1.5rem; }
    .auth-card { padding: 28px 22px; }
}
@media (max-width: 520px) { .auth-row { grid-template-columns: 1fr; } }
