:root {
    --auth-brand: #29B6F6;
    --auth-brand-dark: #0288D1;
    --auth-ink: #0F172A;
    --auth-muted: #64748B;
    --auth-border: #E2E8F0;
    --auth-canvas: #F8FAFC;
}

* { box-sizing: border-box; }

body {
    min-width: 0;
    min-height: 100vh;
    margin: 0;
    font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
    color: var(--auth-ink);
    background: var(--auth-canvas);
}

.hrm-auth-shell,
.scp-auth-shell {
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.scp-auth-wrap {
    width: 100%;
    max-width: 448px;
}

.scp-auth-brand {
    margin-bottom: 32px;
    text-align: center;
}

.scp-auth-logo {
    display: block;
    width: auto;
    height: 48px;
    margin: 0 auto 12px;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.scp-auth-brand p {
    margin: 0;
    color: var(--auth-muted);
    font-size: 14px;
}

.hrm-auth-card,
.scp-auth-card {
    width: 100%;
    padding: 32px;
    border: 1px solid rgba(15, 23, 42, .05);
    border-radius: 12px;
    background: #FFFFFF;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 0 0 1px rgba(0, 0, 0, .02);
}

.scp-auth-intro h1 {
    margin: 0 0 4px;
    color: var(--auth-ink);
    font-size: 18px;
    font-weight: 600;
}

.scp-auth-intro p {
    margin: 0 0 24px;
    color: var(--auth-muted);
    font-size: 14px;
}

.scp-auth-form { display: grid; gap: 16px; }

.scp-auth-field .form-label {
    display: block;
    margin: 0 0 6px;
    color: #475569;
    font-size: 13px;
    font-weight: 500;
}

.scp-auth-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.scp-auth-label-row .form-label { margin-bottom: 6px; }

.scp-auth-field .form-control {
    width: 100%;
    min-height: 40px;
    padding: 8px 12px;
    border: 1px solid var(--auth-border);
    border-radius: 8px;
    background: #FFFFFF;
    color: var(--auth-ink);
    font-size: 14px;
    box-shadow: none;
}

.scp-auth-field .form-control:focus {
    border-color: var(--auth-brand);
    box-shadow: 0 0 0 3px rgba(41, 182, 246, .18);
}

.forgot-password {
    color: #0EA5E9;
    font-size: 12px;
    text-decoration: none;
}

.forgot-password:hover { color: var(--auth-brand-dark); text-decoration: underline; }

.scp-auth-remember {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #475569;
    font-size: 14px;
    cursor: pointer;
}

.scp-auth-remember .form-check-input { margin: 0; }

.scp-auth-submit {
    min-height: 40px;
    border: 1px solid var(--auth-brand);
    border-radius: 8px;
    background: var(--auth-brand);
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 500;
}

.scp-auth-submit:hover,
.scp-auth-submit:focus {
    border-color: var(--auth-brand-dark);
    background: var(--auth-brand-dark);
    color: #FFFFFF;
}

.scp-error-banner {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    padding: 12px 16px;
    border: 1px solid #FECACA;
    border-radius: 4px;
    background: #FEF2F2;
    color: #991B1B;
    font-size: 14px;
    line-height: 20px;
}

.scp-error-banner__title { flex: 0 0 auto; font-weight: 600; }
.scp-error-banner__message { min-width: 0; flex: 1 1 auto; }

.scp-success-banner {
    margin-bottom: 16px;
    padding: 10px 12px;
    border: 1px solid #BBF7D0;
    border-radius: 8px;
    background: #F0FDF4;
    color: #166534;
    font-size: 13px;
}

.hrm-auth-footer {
    margin: 24px 0 0;
    color: #94A3B8;
    font-size: 12px;
    text-align: center;
}

@media (max-width: 479px) {
    .hrm-auth-card,
    .scp-auth-card { padding: 24px; }
}
