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

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

/* ── Navbar ───────────────────────────────────────────────── */
.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; }

/* ── Background ───────────────────────────────────────────── */
.vdr-bg {
    flex: 1;
    position: relative;
    display: flex;
    align-items: stretch;
    overflow: hidden;
    min-height: 0;
}
.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.92) 0%,
        rgba(15, 42, 92, 0.82) 50%,
        rgba(10, 28, 70, 0.70) 100%
    );
    z-index: 1;
}
.vdr-waves {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}
.vdr-waves svg {
    position: absolute;
    width: 100%;
    height: 100%;
}

/* ── Split layout ─────────────────────────────────────────── */
.vdr-split {
    position: relative;
    z-index: 10;
    display: flex;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Left hero */
.vdr-hero {
    flex: 0 0 38%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 56px 48px;
    overflow-y: auto;
}
.vdr-hero-tagline {
    font-size: 15px;
    font-weight: 500;
    color: rgba(255,255,255,0.65);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.vdr-hero-title {
    font-size: 42px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}
.vdr-hero-title span { color: #60a5fa; }
.vdr-hero-desc {
    font-size: 14.5px;
    color: rgba(255,255,255,0.62);
    line-height: 1.7;
    max-width: 320px;
}
.vdr-hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 32px;
}
.vdr-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 12px;
    color: rgba(255,255,255,0.75);
    font-weight: 500;
}
.vdr-pill i { font-size: 14px; color: #60a5fa; }

/* Right form panel — scrolls internally */
.vdr-form-panel {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 32px 40px 32px 24px;
    overflow-y: auto;
    height: 100%;
}

/* ── Registration card ────────────────────────────────────── */
.reg-card {
    background: #ffffff;
    border-radius: 4px;
    padding: 36px 40px;
    width: 100%;
    max-width: 720px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.22);
}

.reg-card-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f1f3f5;
}
.reg-card-icon {
    width: 48px;
    height: 48px;
    background: #eff6ff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.reg-card-icon i { font-size: 24px; color: #1f4e79; }
.reg-card-title {
    font-size: 19px;
    font-weight: 800;
    color: #1f4e79;
    letter-spacing: -0.01em;
    margin-bottom: 4px;
}
.reg-card-subtitle {
    font-size: 13px;
    color: #6c757d;
    font-weight: 400;
    line-height: 1.5;
}

/* ── Alert ────────────────────────────────────────────────── */
.vdr-alert {
    border-radius: 4px;
    padding: 10px 14px;
    font-size: 13.5px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.vdr-alert-danger { background: #fff1f2; border: 1px solid #fca5a5; color: #b91c1c; }
.vdr-alert-success { background: #f0fdf4; border: 1px solid #86efac; color: #15803d; }

/* ── Form grid ────────────────────────────────────────────── */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 24px;
}
.form-col-full { grid-column: 1 / -1; }

.field-group { margin-bottom: 18px; }
.field-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #343a40;
    margin-bottom: 6px;
}
.field-label .req { color: #dc2626; }

.input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.input-wrap .input-icon {
    position: absolute;
    left: 11px;
    font-size: 16px;
    color: #adb5bd;
    pointer-events: none;
    z-index: 2;
}
.input-wrap input,
.input-wrap select {
    width: 100%;
    padding: 9px 12px 9px 34px;
    border: 1.5px solid #dee2e6;
    border-radius: 6px;
    font-family: inherit;
    font-size: 13.5px;
    color: #212529;
    background: #fff;
    outline: none;
    transition: border-color 0.18s;
    appearance: none;
    -webkit-appearance: none;
}
.input-wrap input:focus,
.input-wrap select:focus { border-color: #1f4e79; }
.input-wrap input::placeholder { color: #adb5bd; }
.input-wrap input.is-invalid,
.input-wrap select.is-invalid { border-color: #dc2626; }

.select-wrap { position: relative; }
.select-wrap .select-caret {
    position: absolute;
    right: 11px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #adb5bd;
    pointer-events: none;
    z-index: 2;
}
.select-wrap select { padding-right: 36px; cursor: pointer; }

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

.field-hint {
    font-size: 11.5px;
    color: #6c757d;
    margin-top: 4px;
    line-height: 1.45;
}
.field-hint.danger { color: #dc2626; font-weight: 500; }
.field-error {
    font-size: 11.5px;
    color: #dc2626;
    margin-top: 4px;
}

/* ── Section divider ──────────────────────────────────────── */
.section-divider {
    font-size: 11px;
    font-weight: 700;
    color: #adb5bd;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0 0 10px;
    border-bottom: 1px solid #f1f3f5;
    margin-bottom: 16px;
    margin-top: 4px;
    grid-column: 1 / -1;
}

/* ── Terms row ────────────────────────────────────────────── */
.terms-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 1.5px solid #dee2e6;
    border-radius: 6px;
    background: #f8f9fa;
    margin-bottom: 20px;
    margin-top: 4px;
    cursor: pointer;
}
.terms-row:has(input:checked) {
    border-color: #1f4e79;
    background: #eff6ff;
}
.terms-row input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #1f4e79;
    cursor: pointer;
    flex-shrink: 0;
}
.terms-row label {
    font-size: 13px;
    color: #495057;
    cursor: pointer;
    line-height: 1.4;
}
.terms-link {
    color: #1f4e79;
    font-weight: 600;
    text-decoration: none;
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
}
.terms-link:hover { text-decoration: underline; }

/* ── Submit ───────────────────────────────────────────────── */
.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;
}
.btn-submit:hover { background: #1d4ed8; }
.btn-submit:disabled { background: #93c5fd; cursor: not-allowed; }
.btn-submit i { font-size: 18px; }

/* ── 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: 992px) {
    .vdr-hero { display: none; }
    .vdr-form-panel { padding: 32px 20px; }
    .reg-card { padding: 28px 24px; }
}
@media (max-width: 576px) {
    .vdr-nav { padding: 0 16px; }
    .vdr-nav-hint { display: none; }
    .form-grid { grid-template-columns: 1fr; }
    .form-col-full { grid-column: 1; }
    .vdr-footer { padding: 10px 16px; }
}
