:root {
    --edms-navy-950: #0a1330;
    --edms-navy-900: #101f45;
    --edms-navy-800: #16305c;
    --edms-blue-500: #1e88e5;
    --edms-gold-400: #ffcb3d;
    --edms-gold-500: #f2b705;
    --edms-orange-500: #f7941e;
}

html, body {
    height: 100%;
}

body.auth-body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background:
        radial-gradient(circle at 18% 18%, rgba(242, 183, 5, 0.20) 0%, rgba(242, 183, 5, 0) 42%),
        radial-gradient(circle at 88% 82%, rgba(30, 136, 229, 0.28) 0%, rgba(30, 136, 229, 0) 45%),
        linear-gradient(150deg, var(--edms-navy-950) 0%, var(--edms-navy-900) 45%, var(--edms-navy-800) 100%);
    background-attachment: fixed;
}

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

.auth-card {
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 24px 60px -20px rgba(10, 19, 48, 0.55), 0 2px 8px rgba(10, 19, 48, 0.12);
    padding: 40px 36px 32px;
}

.auth-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-bottom: 22px;
}

.auth-brand img {
    height: 58px;
    width: auto;
    object-fit: contain;
}

.auth-brand .divider {
    width: 1px;
    height: 44px;
    background: linear-gradient(to bottom, transparent, #d8dde6, transparent);
}

.auth-heading {
    text-align: center;
    margin-bottom: 28px;
}

.auth-heading .eyebrow {
    display: block;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 700;
    background: linear-gradient(90deg, var(--edms-orange-500), var(--edms-gold-500));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 6px;
}

.auth-heading h1 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--edms-navy-900);
    margin: 0 0 4px;
}

.auth-heading p {
    font-size: 0.86rem;
    color: #6b7280;
    margin: 0;
}

.auth-form .form-label {
    font-weight: 600;
    font-size: 0.84rem;
    color: var(--edms-navy-900);
}

.auth-form .form-control {
    border-radius: 10px;
    border: 1px solid #dde2ea;
    padding: 10px 14px;
    font-size: 0.94rem;
}

.auth-form .form-control:focus {
    border-color: var(--edms-blue-500);
    box-shadow: 0 0 0 0.2rem rgba(30, 136, 229, 0.15);
}

/* auth.css loads after bootstrap, jadi state invalid ditulis ulang eksplisit
   supaya tidak ketiban warna border default di atas. */
.auth-form .form-control.is-invalid {
    border-color: #dc3545;
}

.auth-form .form-control.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.2);
}

.auth-form .form-check-label {
    font-size: 0.86rem;
    color: #4b5563;
}

.auth-submit {
    display: block;
    width: 100%;
    border: none;
    border-radius: 10px;
    padding: 11px 16px;
    font-weight: 700;
    font-size: 0.95rem;
    color: #1a1204;
    background: linear-gradient(90deg, var(--edms-gold-400), var(--edms-orange-500));
    box-shadow: 0 10px 20px -8px rgba(247, 148, 30, 0.55);
    transition: filter 0.15s ease, transform 0.15s ease;
}

.auth-submit:hover,
.auth-submit:focus {
    filter: brightness(1.05);
    color: #1a1204;
}

.auth-submit:active {
    transform: translateY(1px);
}

.auth-footer {
    text-align: center;
    margin-top: 22px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.78rem;
    line-height: 1.5;
}

.auth-dev-note {
    margin-top: 18px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #fff8e6;
    border: 1px solid #f4e3ad;
    color: #6b5411;
    font-size: 0.76rem;
}

.auth-dev-note code {
    color: #8a5a00;
}
