*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }

body {
    font-family: 'Plus Jakarta Sans', -apple-system, 'Segoe UI', sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #0f2a5c;
}

/* ── Navbar (white) ───────────────────────────────────────── */
.vdr-nav {
    background: #ffffff;
    border-bottom: 1px solid #e8ecf0;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    flex-shrink: 0;
    z-index: 10;
    position: relative;
}

.vdr-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}
.vdr-brand img {
    height: 40px;
    width: auto;
}
.vdr-brand-name {
    font-size: 18px;
    font-weight: 700;
    color: #1f4e79;
    letter-spacing: -0.01em;
}

.vdr-nav-right {
    display: flex;
    align-items: center;
    gap: 10px;
}
.vdr-nav-hint {
    font-size: 13px;
    color: #6c757d;
    margin-right: 4px;
}

.btn-nav-outline {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 18px;
    border: 1.5px solid #1f4e79;
    border-radius: 6px;
    background: transparent;
    color: #1f4e79;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.18s, color 0.18s;
    white-space: nowrap;
}
.btn-nav-outline:hover {
    background: #1f4e79;
    color: #fff;
}

.btn-nav-fill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 18px;
    border: 1.5px solid #1f4e79;
    border-radius: 6px;
    background: #1f4e79;
    color: #fff;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.18s;
    white-space: nowrap;
}
.btn-nav-fill:hover {
    background: #2a6094;
    color: #fff;
}

/* ── Background section ───────────────────────────────────── */
.vdr-bg {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 72px 24px;
    overflow: hidden;
}

.vdr-bg-photo {
    position: absolute;
    inset: 0;
    background-image: url('/images/login_background/bg-1.jpeg');
    background-size: cover;
    background-position: center;
    z-index: 0;
}
.vdr-bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(10, 35, 90, 0.88) 0%,
        rgba(15, 42, 92, 0.78) 50%,
        rgba(10, 28, 70, 0.65) 100%
    );
    z-index: 1;
}

/* Wave decorations — match reference screenshot */
.vdr-waves {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}
.vdr-waves svg {
    position: absolute;
    width: 100%;
    height: 100%;
}

/* ── Login card ───────────────────────────────────────────── */
.login-card {
    position: relative;
    z-index: 10;
    background: #ffffff;
    border-radius: 4px;
    padding: 44px 48px 40px;
    width: 100%;
    max-width: 490px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.22);
}

.card-lock-icon {
    text-align: center;
    margin-bottom: 14px;
}
.card-lock-icon i {
    font-size: 44px;
    color: #1f4e79;
}

.card-title {
    text-align: center;
    font-size: 20px;
    font-weight: 800;
    color: #1f4e79;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.card-subtitle {
    text-align: center;
    font-size: 13.5px;
    color: #6c757d;
    font-weight: 400;
    margin-bottom: 28px;
    line-height: 1.5;
}

/* ── Alerts ───────────────────────────────────────────────── */
.vdr-alert {
    border-radius: 4px;
    padding: 10px 14px;
    font-size: 13.5px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.vdr-alert-danger {
    background: #fff1f2;
    border: 1px solid #fca5a5;
    color: #b91c1c;
}

/* ── Form fields ──────────────────────────────────────────── */
.field-group {
    margin-bottom: 18px;
}

.field-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.field-label {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: #343a40;
    margin-bottom: 6px;
}

.forgot-link {
    font-size: 13px;
    color: #1f4e79;
    text-decoration: none;
    font-weight: 500;
}
.forgot-link:hover { text-decoration: underline; color: #1f4e79; }

.input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.input-wrap .input-icon {
    position: absolute;
    left: 12px;
    font-size: 17px;
    color: #adb5bd;
    pointer-events: none;
    z-index: 2;
}
.input-wrap input {
    width: 100%;
    padding: 10px 40px 10px 38px;
    border: 1.5px solid #dee2e6;
    border-radius: 6px;
    font-family: inherit;
    font-size: 14px;
    color: #212529;
    background: #fff;
    outline: none;
    transition: border-color 0.18s;
}
.input-wrap input:focus {
    border-color: #1f4e79;
}
.input-wrap input::placeholder { color: #adb5bd; }

.input-wrap .toggle-pwd {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #adb5bd;
    font-size: 18px;
    display: flex;
    align-items: center;
    z-index: 2;
}
.input-wrap .toggle-pwd:hover { color: #495057; }

/* ── Submit button ────────────────────────────────────────── */
.btn-submit {
    width: 100%;
    padding: 12px;
    background: #2563eb;
    border: none;
    border-radius: 6px;
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.18s;
    margin-bottom: 20px;
}
.btn-submit:hover { background: #1d4ed8; }
.btn-submit:disabled { background: #93c5fd; cursor: not-allowed; }
.btn-submit i { font-size: 18px; }

/* ── Register link ────────────────────────────────────────── */
.register-prompt {
    text-align: center;
    font-size: 13.5px;
    color: #6c757d;
    margin: 0;
}
.register-prompt a {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
}
.register-prompt a:hover { text-decoration: underline; }

/* ── Footer ───────────────────────────────────────────────── */
.vdr-footer {
    background: rgba(5, 18, 50, 0.95);
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 12px 32px;
    flex-shrink: 0;
}
.vdr-footer p {
    font-size: 12px;
    color: rgba(255,255,255,0.38);
    margin: 0;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 576px) {
    .vdr-nav { padding: 0 16px; }
    .vdr-nav-hint { display: none; }
    .vdr-brand-name { font-size: 15px; }
    .login-card { padding: 32px 24px 28px; }
    .vdr-footer { padding: 10px 16px; }
}
