/* ============================================
   NEXUS MANAGEMENT — AUTH STYLES
   ============================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --ink:       #0d0f14;
    --ink-soft:  #4a4f5e;
    --ink-muted: #8b919e;
    --surface:   #ffffff;
    --border:    #e4e7ed;
    --accent:    #3b5bdb;
    --accent-dk: #2f4ac0;
    --accent-lt: #eef1fd;
    --green:     #12b76a;
    --red:       #f04438;
    --panel-bg:  #0d1117;
    --panel-txt: rgba(255,255,255,0.9);
    --panel-sub: rgba(255,255,255,0.5);
}

html, body { height: 100%; }

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--surface);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
}

/* ── LAYOUT ─────────────────────────────── */

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

/* ── LEFT PANEL ─────────────────────────── */

.panel-left {
    background: var(--panel-bg);
    padding: 48px 56px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.panel-left::before {
    content: '';
    position: absolute;
    top: -120px; right: -120px;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(59,91,219,0.35) 0%, transparent 70%);
    pointer-events: none;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    margin-bottom: auto;
}

.brand-icon {
    width: 32px; height: 32px;
    flex-shrink: 0;
}

.brand-name {
    font-family: 'Syne', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fff;
}

.hero-content {
    margin-top: 80px;
    margin-bottom: 40px;
}

.hero-content h1 {
    font-family: 'Syne', sans-serif;
    font-size: clamp(1.75rem, 3vw, 2.4rem);
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}

.hero-content p {
    font-size: 1rem;
    color: var(--panel-sub);
    line-height: 1.6;
    max-width: 340px;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 48px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--panel-sub);
    font-size: 0.875rem;
}

.feature-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
}

/* Decorative grid */
.deco-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    width: 120px;
    margin-top: auto;
    opacity: 0.3;
}

.deco-cell {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 4px;
    background: rgba(255,255,255,0.12);
    transition: background 0.3s;
}

.deco-cell.active {
    background: var(--accent);
    opacity: 1;
}

/* ── RIGHT PANEL ─────────────────────────── */

.panel-right {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 40px;
    background: #f9fafb;
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: var(--surface);
    border-radius: 20px;
    padding: 48px 44px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.06), 0 10px 40px -4px rgba(0,0,0,0.08);
    border: 1px solid var(--border);
    animation: cardIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes cardIn {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

.card-header {
    margin-bottom: 32px;
}

.card-header h2 {
    font-family: 'Syne', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--ink);
    margin-bottom: 6px;
}

.card-header p {
    font-size: 0.9rem;
    color: var(--ink-muted);
}

/* ── ALERTS ─────────────────────────────── */

.alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.875rem;
    margin-bottom: 24px;
}

.alert svg { width: 18px; height: 18px; flex-shrink: 0; }

.alert-error  { background: #fef3f2; color: var(--red);   border: 1px solid #fecdca; }
.alert-success{ background: #ecfdf3; color: var(--green);  border: 1px solid #a9efc5; }

/* ── FORM ────────────────────────────────── */

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--ink-soft);
    letter-spacing: 0.01em;
}

.forgot-link {
    font-size: 0.8rem;
    color: var(--accent);
    text-decoration: none;
    font-weight: 400;
    transition: color 0.15s;
}
.forgot-link:hover { color: var(--accent-dk); }

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

.input-icon {
    position: absolute;
    left: 14px;
    width: 17px; height: 17px;
    color: var(--ink-muted);
    pointer-events: none;
}

.input-wrapper input {
    width: 100%;
    padding: 11px 14px 11px 42px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.925rem;
    color: var(--ink);
    background: var(--surface);
    transition: border-color 0.15s, box-shadow 0.15s;
    outline: none;
}

.input-wrapper input::placeholder { color: #c0c5d0; }

.input-wrapper input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(59,91,219,0.1);
}

.toggle-password {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: var(--ink-muted);
    display: flex;
    align-items: center;
    transition: color 0.15s;
}
.toggle-password:hover { color: var(--ink); }
.toggle-password svg { width: 17px; height: 17px; }

/* ── CHECKBOX ────────────────────────────── */

.form-row { margin-top: -4px; }

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--ink-soft);
    user-select: none;
}

.checkbox-label input[type="checkbox"] { display: none; }

.checkmark {
    width: 18px; height: 18px;
    border: 1.5px solid var(--border);
    border-radius: 5px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: all 0.15s;
    background: var(--surface);
}

.checkbox-label input:checked + .checkmark {
    background: var(--accent);
    border-color: var(--accent);
}

.checkbox-label input:checked + .checkmark::after {
    content: '';
    width: 5px; height: 9px;
    border: 2px solid #fff;
    border-top: none; border-left: none;
    transform: rotate(45deg) translateY(-1px);
    display: block;
}

/* ── BUTTON ──────────────────────────────── */

.btn-login {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 20px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
    margin-top: 4px;
}

.btn-login svg { width: 17px; height: 17px; }

.btn-login:hover {
    background: var(--accent-dk);
    box-shadow: 0 4px 14px rgba(59,91,219,0.35);
}

.btn-login:active { transform: scale(0.98); }

/* ── FOOTER LINK ─────────────────────────── */

.register-prompt {
    text-align: center;
    margin-top: 24px;
    font-size: 0.875rem;
    color: var(--ink-muted);
}

.register-prompt a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s;
}
.register-prompt a:hover { color: var(--accent-dk); }

/* ── RESPONSIVE ──────────────────────────── */

@media (max-width: 900px) {
    .split-layout { grid-template-columns: 1fr; }
    .panel-left   { display: none; }
    .panel-right  { background: #f9fafb; min-height: 100vh; }
}

@media (max-width: 480px) {
    .login-card { padding: 36px 28px; border-radius: 16px; }
}
