/* assets/css/login.css — Institutional redesign */

:root {
    --ink: #1a1d23;
    --ink-muted: #4a5160;
    --ink-soft: #5e6472;
    --paper: #f7f8fb;
    --paper-2: #eef1f6;
    --surface: #ffffff;
    --accent: #17223b; /* deep authoritative blue */
    --accent-2: #303a52;
    --accent-3: #55617a;
    --border: #d9dde6;
    --border-strong: #c6ccda;
    --focus: #3a66ff;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
    margin: 0;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: var(--ink);
    background:
        linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
}

/* High-authority split layout */
.auth-layout {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    min-height: 100vh;
}

.brand-panel {
    position: relative;
    background:
        linear-gradient(180deg, rgba(23,34,59,0.12) 0%, rgba(23,34,59,0.06) 100%),
        linear-gradient(90deg, #111827 0%, #17223b 100%);
    color: #e9ecf4;
    border-right: 1px solid #1f2937;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 48px 56px;
}

.brand-inner { display: flex; align-items: center; gap: 28px; }
.brand-logo { width: 50px; height: auto; object-fit: contain; filter: grayscale(20%); }
.brand-copy { display: flex; flex-direction: column; gap: 6px; }
.brand-title { margin: 0; font-weight: 600; letter-spacing: 0.2px; }
.brand-subtitle { margin: 0; color: #c6ccda; }

.brand-meta { font-size: 14px; color: #cbd2df; }
.brand-meta a { color: #dfe6f5; text-underline-offset: 2px; }
.brand-meta a:hover { text-decoration: underline; }

.form-panel { display: flex; align-items: center; justify-content: center; padding: 48px; }
.form-wrap {
    width: 100%;
    max-width: 420px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(17, 24, 39, 0.08);
    padding: 28px;
}

.form-header h2 { margin: 0 0 6px; font-weight: 600; color: var(--accent); }
.muted { color: var(--ink-muted); font-size: 14px; margin: 0; }
.link { text-decoration: none; color: var(--ink-soft); }
.link:hover { color: var(--accent-3); text-decoration: underline; }

.field { margin-top: 16px; }
.label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.field label { display: block; font-size: 14px; color: var(--ink); margin-bottom: 8px; }

input[type="text"], input[type="password"] {
    width: 100%;
    height: 44px;
    padding: 0 12px;
    border: 1px solid var(--border-strong);
    border-radius: 2px;
    background: #fff;
    color: var(--ink);
    font-size: 15px;
    transition: border-color .15s ease, box-shadow .15s ease;
}

input::placeholder { color: #8d94a5; }

input:focus {
    outline: none;
    border-color: var(--focus);
    box-shadow: 0 0 0 3px rgba(58, 102, 255, 0.18);
}

.form-row { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.checkbox { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-muted); font-size: 14px; }
.checkbox input { width: 16px; height: 16px; }

.actions { margin-top: 20px; display: flex; gap: 12px; }

.btn {
    appearance: none;
    border: 1px solid var(--accent-2);
    background: linear-gradient(180deg, var(--accent) 0%, var(--accent-2) 100%);
    color: #fff;
    height: 44px;
    padding: 0 16px;
    border-radius: 2px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.2px;
    cursor: pointer;
    transition: transform .06s ease, box-shadow .2s ease, filter .15s ease;
    box-shadow: 0 6px 14px rgba(23, 34, 59, 0.16);
}

.btn:hover { filter: brightness(1.02); box-shadow: 0 10px 22px rgba(23, 34, 59, 0.22); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(58,102,255,.22), 0 10px 22px rgba(23, 34, 59, 0.22); }

.btn[disabled] { opacity: .8; cursor: not-allowed; }

.form-alert {
    border: 1px solid #d6b4b4;
    background: #fff3f3;
    color: #7f1d1d;
    padding: 10px 12px;
    border-radius: 2px;
    font-size: 14px;
    margin: 10px 0 0;
}

.disclaimer { margin-top: 16px; font-size: 12px; color: var(--ink-muted); }

@media (max-width: 960px) {
    .auth-layout { grid-template-columns: 1fr; }
    .brand-panel { padding: 28px; border-right: none; border-bottom: 1px solid #1f2937; }
    .form-panel { padding: 28px 20px; }
}