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

html, body {
    height: 100%;
    background: #0e0e11;
    color: #e4e1ed;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
}

/* ── Page Layout ────────────────────────────────────────────────────────── */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

/* ── Brand Block ─────────────────────────────────────────────────────────── */
.login-brand-block {
    text-align: center;
    margin-bottom: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.login-logo {
    height: 48px;
    width: auto;
}

.login-brand-tagline {
    font-size: 13px;
    color: #71717a;
    letter-spacing: 0.01em;
}

/* ── Card ───────────────────────────────────────────────────────────────── */
.login-card {
    width: 100%;
    max-width: 400px;
    background: #18181b;
    border: 1px solid #27272a;
    border-radius: 12px;
    padding: 24px;
}

/* ── Form ───────────────────────────────────────────────────────────────── */
.login-form { display: flex; flex-direction: column; gap: 20px; }

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

.form-label {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: #a1a1aa;
}

.form-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.form-forgot {
    font-size: 12px;
    color: rgba(99,102,241,0.8);
    text-decoration: none;
    transition: color 0.15s;
}

.form-forgot:hover { color: #818cf8; }

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

.form-input-icon {
    position: absolute;
    left: 12px;
    color: #71717a;
    font-size: 18px !important;
    pointer-events: none;
    font-variation-settings: 'FILL' 0;
}

.form-input {
    width: 100%;
    background: #1f1f27;
    color: #e4e1ed;
    border: 1px solid #27272a;
    border-radius: 8px;
    padding: 10px 12px 10px 40px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.form-input::placeholder { color: #52525b; }

.form-input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 2px rgba(99,102,241,0.2);
}

.form-remember {
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-remember input[type="checkbox"] {
    width: 16px;
    height: 16px;
    background: #1f1f27;
    border: 1px solid #34343d;
    border-radius: 4px;
    accent-color: #6366f1;
    cursor: pointer;
}

.form-remember label {
    font-size: 13px;
    color: #a1a1aa;
    cursor: pointer;
}

.btn-submit {
    width: 100%;
    padding: 10px 16px;
    background: #6366f1;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    font-family: inherit;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-submit:hover  { background: #4f46e5; }
.btn-submit:active { background: #4338ca; }

.btn-submit .material-symbols-outlined { font-size: 18px !important; }

/* ── Errors ─────────────────────────────────────────────────────────────── */
.login-errors {
    background: rgba(239,68,68,0.08);
    border: 1px solid rgba(239,68,68,0.3);
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 4px;
}

.login-errors li {
    list-style: none;
    font-size: 13px;
    color: #ef4444;
}

.field-error {
    font-size: 11px;
    color: #ef4444;
    margin-top: 2px;
}

/* ── Dev Quick Roles ─────────────────────────────────────────────────────── */
.dev-roles-section {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #27272a;
    text-align: center;
}

.dev-roles-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #3f3f46;
    margin-bottom: 10px;
}

.dev-roles-label .material-symbols-outlined { font-size: 14px !important; }

.dev-roles-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
}

.dev-chip {
    padding: 4px 12px;
    background: #1f1f27;
    border: 1px solid #27272a;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 500;
    color: #a1a1aa;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
    font-family: inherit;
}

.dev-chip:hover {
    color: #818cf8;
    border-color: rgba(99,102,241,0.4);
    background: rgba(99,102,241,0.06);
}
