:root {
    --brand: #6d5efc;
    --brand-dark: #241a5c;
    --brand-deep: #17123f;
    --accent: #10b981;
    --ink: #16203a;
    --muted: #5b6980;
    --line: #e6eaf2;
}

body.auth {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
}

.auth-wrap { display: flex; min-height: 100vh; }

/* Left brand panel */
.auth-brand {
    flex: 1;
    background: radial-gradient(900px 500px at 20% 0%, #4b37b8 0%, transparent 60%), linear-gradient(160deg, var(--brand-deep), #2a1f6b);
    color: #fff;
    padding: 56px 60px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}
.auth-brand .logo { font-weight: 800; font-size: 1.5rem; letter-spacing: -.02em; }
.auth-brand .logo span { color: #b6a9ff; }
.auth-brand h2 { font-size: 2.3rem; font-weight: 800; line-height: 1.15; letter-spacing: -.02em; margin: 0 0 18px; max-width: 460px; }
.auth-brand p.sub { color: #c4d2f2; font-size: 1.05rem; max-width: 440px; }
.auth-brand ul { list-style: none; padding: 0; margin: 26px 0 0; }
.auth-brand li { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; color: #d6e0f6; }
.auth-brand li i { color: var(--accent); font-size: 1.15rem; }
.auth-brand .quote { border-left: 3px solid rgba(255,255,255,.25); padding-left: 16px; color: #c4d2f2; font-size: .95rem; max-width: 420px; }
.auth-brand .quote b { color: #fff; display: block; margin-top: 8px; font-weight: 600; }

/* Right form panel */
.auth-panel { width: 500px; max-width: 100%; display: grid; place-items: center; padding: 40px; background: #f7f9fd; }
.auth-card { width: 100%; max-width: 380px; }
.auth-card .top-back { font-size: .9rem; color: var(--muted); margin-bottom: 28px; display: inline-flex; align-items: center; gap: 6px; }
.auth-card .top-back:hover { color: var(--brand); }
.auth-card h1 { font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em; margin: 0 0 6px; }
.auth-card .subtitle { color: var(--muted); margin-bottom: 26px; }

.auth-field { margin-bottom: 18px; }
.auth-field label { font-weight: 600; font-size: .86rem; margin-bottom: 7px; display: block; }
.auth-input { position: relative; }
.auth-input i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #9aa6bd; font-size: 1.05rem; }
.auth-input .form-control { height: 48px; border-radius: 11px; border: 1px solid var(--line); padding-left: 42px; font-size: .97rem; background: #fff; }
.auth-input .form-control:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(27,110,243,.14); }

.auth-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.auth-row .form-check-label { font-size: .9rem; color: var(--ink); }
.auth-row a { font-size: .9rem; color: var(--brand); font-weight: 600; }

.btn-auth { width: 100%; height: 48px; border: none; border-radius: 11px; background: var(--brand); color: #fff; font-weight: 700; font-size: 1rem; transition: .15s; }
.btn-auth:hover { background: #135ad4; }

.auth-foot { text-align: center; margin-top: 26px; color: var(--muted); font-size: .92rem; }
.auth-foot a { color: var(--brand); font-weight: 600; }

.auth-alert { border-radius: 11px; }

@media (max-width: 900px) {
    .auth-brand { display: none; }
    .auth-panel { width: 100%; }
}
