:root {
    --primary: #1e40af;
    --success: #10b981;
    --border: #e2e8f0;
    --light: #64748b;
    --text: #334155;
    --text-light: #64748b;
    --radius: 0.75rem;
    --shadow: 0 25px 50px rgba(0,0,0,0.18);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    overflow-x: hidden;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: linear-gradient(135deg, #f0f8ff 0%, #f5f0ff 48%, #f0fdf4 100%);
}

.header {
    background: rgba(255,255,255,1);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.header__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.5rem;
    min-height: 70px;
    max-width: 1400px;
    margin: 0 auto;
}
.hamburger {
    display: none;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
}
/* DESKTOP NAV */
.nav-menu ul {
    display: flex;
    gap: 2.4rem;
    list-style: none;
    margin-bottom: 0px !important;
}

.nav-menu a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    transition: var(--transition);
}

    .nav-menu a:hover, .nav-menu a.active {
        color: var(--primary);
    }

.nav-menu .chevron {
    font-size: 0.75rem;
    transition: transform 0.2s;
}

.nav-item {
    position: relative;
}

    .nav-item:hover > .chevron {
        transform: rotate(180deg);
    }

/* SIDEBAR & OVERLAY */
.sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100vh;
    background: var(--primary);
    color: white;
    transition: left 0.3s ease;
    z-index: 2000;
    overflow-y: auto;
}

    .sidebar.open {
        left: 0;
    }

.sidebar-header {
    padding: 1.5rem;
    background: #172554;
    position: relative;
}

.close-sidebar {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: #93c5fd;
}

.sidebar-menu a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    color: #bfdbfe;
    text-decoration: none;
}

    .sidebar-menu a:hover,
    .sidebar-menu a.active {
        background: #1e40af;
        color: white;
    }

.sidebar-submenu {
    background: #172554;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

    .sidebar-submenu.open {
        max-height: 600px;
    }

    .sidebar-submenu a {
        padding-left: 3.5rem;
        font-size: 0.9rem;
    }

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1500;
}

    .overlay.active {
        opacity: 1;
        visibility: visible;
    }

.card {
    background: white;
    max-width: 800px;
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    font-size: 0.94rem;
    line-height: 1.52;
}
h1 {
    padding: 0.5rem;
}

article h1 {
    background: var(--primary);
    color: white;
    margin: 0;
    padding: 1rem;
    text-align: center;
    font-size: 1.7rem;
    font-weight: 700;
}

.content {
    padding: 1.4rem 1.8rem;
    color: var(--text);
}

article h2 {
    color: var(--primary);
    font-size: 1.22rem;
    margin: 1.1rem 0 0.6rem;
    font-weight: 700;
}

p, ul {
    margin-bottom: 0.8rem;
}

ul {
    padding-left: 1.2rem;
}

li {
    margin-bottom: 0.35rem;
}
.contact {
    margin-top: 1.4rem;
    padding-top: 1rem;
    border-top: 2px solid #e2e8f0;
    text-align: center;
    font-weight: 600;
    color: var(--primary);
    font-size: 1.02rem;
}
.logo img {
    height: 42px;
}

.hero {
    flex: 1;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.5)), url('/assets/img/Background-Image.jpg') center / cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.register-card {
    background: white;
    width: 100%;
    max-width: 520px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    animation: fadeIn 0.7s ease-out;
}

.register-header {
    background: var(--primary);
    color: white;
    padding: 1.5rem;
    text-align: center;
}

    .register-header h2 {
        font-size: 1.9rem;
        font-weight: 700;
        margin-bottom: 0.4rem;
    }

    .register-header p {
        font-size: 1rem;
        opacity: 0.94;
    }

.register-body {
    padding: 2rem 2.4rem 2.6rem;
}

/* "I am:" + radios in single row */
.iam-group {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

    .iam-group > label:first-child {
        font-weight: 600;
        color: var(--text);
        min-width: 50px;
    }

.radio-options {
    display: flex;
    gap: 2rem;
}

    .radio-options label {
        display: flex;
        align-items: center;
        gap: 0.6rem;
        font-weight: 500;
        cursor: pointer;
    }

input[type="radio"] {
    accent-color: var(--primary);
    width: 19px;
    height: 19px;
}

/* Two-column rows */
.row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.3rem;
    margin-bottom: 1.4rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}
.login-body .form-group, .reset-body .form-group {
    margin-bottom: 1.6rem;
}
label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text);
    font-size: 0.95rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="date"] {
    width: 100%;
    padding: 0.95rem 1rem;
    border: 1.5px solid #cbd5e1;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.25s ease;
}

input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(30, 64, 175, 0.16);
}

input::placeholder {
    color: #94a3b8;
}

.password-note {
    font-size: 0.86rem;
    color: #64748b;
    margin: 1rem 0 1.6rem;
    font-style: italic;
    line-height: 1.4;
}

.btn-register {
    width: 100%;
    padding: 1.1rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

    .btn-register:hover {
        background: #1d4ed8;
    }

.register-footer {
    text-align: center;
    padding: 1.4rem 2rem;
    background: #f2f2f2;
    font-size: 0.94rem;
    color: var(--text-light);
}

    .register-footer a {
        color: var(--primary);
        text-decoration: none;
        font-weight: 600;
    }

        .register-footer a:hover {
            text-decoration: underline;
        }

.site-footer {
    background: white;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-light);
}

.site-footer-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

@media (max-width: 640px) {
    .row {
        grid-template-columns: 1fr;
    }

    .iam-group {
        gap: 1.5rem;
    }

    .radio-options {
        gap: 1.5rem;
    }
}


.login-card {
    background: white;
    width: 100%;
    max-width: 420px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    animation: fadeIn 0.7s ease-out;
}

.login-header {
    background: var(--primary);
    color: white;
    padding: 1.5rem;
    text-align: center;
}

    .login-header h2 {
        font-size: 1.9rem;
        font-weight: 700;
        margin-bottom: 0.4rem;
    }

    .login-header p {
        opacity: 0.92;
        font-size: 0.98rem;
    }

.login-body {
    padding: 2.4rem 2rem 2.6rem;
}
.btn-login {
    width: 100%;
    padding: 1rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 0.8rem;
    transition: background 0.3s ease;
}

    .btn-login:hover {
        background: #1d4ed8;
    }

.login-footer {
    text-align: center;
    padding: 1.4rem 2rem;
    background: #f2f2f2;
    font-size: 0.92rem;
    color: var(--text-light);
}

    .login-footer a {
        color: var(--primary);
        text-decoration: none;
        font-weight: 500;
    }

        .login-footer a:hover {
            text-decoration: underline;
        }
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.forgot-card {
    background: white;
    width: 100%;
    max-width: 390px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    animation: fadeIn 0.7s ease-out;
}

.forgot-header {
    background: var(--primary);
    color: white;
    padding: 1.5rem;
    text-align: center;
}

    .forgot-header h2 {
        font-size: 1.85rem;
        font-weight: 700;
        margin-bottom: 0.4rem;
    }

    .forgot-header p {
        font-size: 0.96rem;
        opacity: 0.95;
        line-height: 1.4;
    }

.forgot-body {
    padding: 1.8rem 2rem 2.4rem;
}
.btn-submit {
    width: 100%;
    padding: 1.05rem;
    margin-top: 0.8rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 1.08rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

    .btn-submit:hover {
        background: #1d4ed8;
    }

.forgot-footer {
    text-align: center;
    padding: 1.3rem 2rem;
    background: #f2f2f2;
    font-size: 0.92rem;
    color: var(--text-light);
}

    .forgot-footer a {
        color: var(--primary);
        text-decoration: none;
        font-weight: 600;
    }

        .forgot-footer a:hover {
            text-decoration: underline;
        }
.reset-card {
    background: white;
    width: 100%;
    max-width: 390px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    animation: fadeIn 0.7s ease-out;
}

.reset-header {
    background: var(--primary);
    color: white;
    padding: 1.5rem;
    text-align: center;
}

    .reset-header h2 {
        font-size: 1.85rem;
        font-weight: 700;
        margin-bottom: 0.4rem;
    }

    .reset-header p {
        font-size: 0.96rem;
        opacity: 0.95;
        line-height: 1.5;
    }

.reset-body {
    padding: 1.8rem 2rem 2.4rem;
}

.btn-reset {
    width: 100%;
    padding: 1.05rem;
    margin-top: 1rem;
    background: var(--success);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 1.08rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

    .btn-reset:hover {
        background: #059669;
    }

.reset-footer {
    text-align: center;
    padding: 1.3rem 2rem;
    background: #f2f2f2;
    font-size: 0.92rem;
    color: var(--text-light);
}

    .reset-footer a {
        color: var(--primary);
        text-decoration: none;
        font-weight: 600;
    }

        .reset-footer a:hover {
            text-decoration: underline;
        }

@media (max-width: 992px) {
    .nav-menu {
        display: none;
    }
    .hamburger {
        display: block;
    }
}
@media (max-width: 480px) {
    .logo img {
        height: 40px;
    }

    .login-header {
        padding: 2rem 1.5rem 1.6rem;
    }

        .login-header h2 {
            font-size: 1.7rem;
        }

    .login-body {
        padding: 2rem 1.5rem;
    }
    .register-card {
        max-width: 340px;
    }

    .register-header h2 {
        font-size: 1.7rem;
    }

    .register-body {
        padding: 1.8rem 1.8rem 2.4rem;
    }

    .forgot-card {
        max-width: 340px;
    }

    .forgot-header {
        padding: 1.8rem 1.5rem 1.5rem;
    }

        .forgot-header h2 {
            font-size: 1.7rem;
        }

    .forgot-body {
        padding: 1.7rem 1.5rem 2.2rem;
    }
    .reset-card {
        max-width: 340px;
    }

    .reset-header h2 {
        font-size: 1.7rem;
    }

    .reset-body {
        padding: 1.7rem 1.5rem 2.2rem;
    }
    h1 {
        font-size: 1.55rem;
        padding: 0.9rem;
    }

    .content {
        padding: 1.3rem 1.5rem;
        font-size: 0.92rem;
    }

    h2 {
        font-size: 1.18rem;
    }
}
/*Alerts CSS*/
/* Bootstrap 5 Alerts - Core Styles */
.alert {
    position: relative;
    padding: 1rem 1rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.375rem;
    margin-top: 1.5rem;
}

.alert-heading {
    color: inherit;
}

.alert-link {
    font-weight: 700;
}

.alert-dismissible {
    padding-right: 3rem;
}

    .alert-dismissible .close {
        position: absolute;
        top: 0;
        right: 0;
        z-index: 2;
        padding: 1.25rem 1rem;
        background: transparent;
        border: 0;
        font-size: 1.5rem;
        line-height: 1;
        cursor: pointer;
        opacity: 0.5;
    }

/* Alert Variants */
.alert-primary {
    --bs-alert-color: #084298;
    --bs-alert-bg: #cfe2ff;
    --bs-alert-border-color: #b6d4fe;
}

.alert-secondary {
    --bs-alert-color: #41464b;
    --bs-alert-bg: #e2e3e5;
    --bs-alert-border-color: #d3d6d8;
}

.alert-success {
    --bs-alert-color: #0f5132;
    --bs-alert-bg: #d1e7dd;
    --bs-alert-border-color: #badbcc;
}

.alert-info {
    --bs-alert-color: #055160;
    --bs-alert-bg: #cff4fc;
    --bs-alert-border-color: #b6effb;
}

.alert-warning {
    --bs-alert-color: #664d03;
    --bs-alert-bg: #fff3cd;
    --bs-alert-border-color: #ffecb5;
}

.alert-danger {
    --bs-alert-color: #842029;
    --bs-alert-bg: #f8d7da;
    --bs-alert-border-color: #f5c2c7;
}

.alert-light {
    --bs-alert-color: #636464;
    --bs-alert-bg: #fefefe;
    --bs-alert-border-color: #fdfdfe;
}

.alert-dark {
    --bs-alert-color: #141619;
    --bs-alert-bg: #d3d3d4;
    --bs-alert-border-color: #bcbebf;
}

/* Apply variables */
.alert-primary,
.alert-secondary,
.alert-success,
.alert-info,
.alert-warning,
.alert-danger,
.alert-light,
.alert-dark {
    color: var(--bs-alert-color);
    background-color: var(--bs-alert-bg);
    border-color: var(--bs-alert-border-color);
}

    /* Links inside alerts */
    .alert-primary .alert-link {
        color: #06357a;
    }

    .alert-secondary .alert-link {
        color: #34383c;
    }

    .alert-success .alert-link {
        color: #0c4128;
    }

    .alert-info .alert-link {
        color: #04414d;
    }

    .alert-warning .alert-link {
        color: #523e02;
    }

    .alert-danger .alert-link {
        color: #6a1a21;
    }

    .alert-light .alert-link {
        color: #4f5050;
    }

    .alert-dark .alert-link {
        color: #101214;
    }
/*General*/
.fade {
    transition: opacity 0.15s linear;
}

    .fade:not(.show) {
        opacity: 0;
    }

.show {
    display: block !important;
}

.d-flex {
    display: flex !important;
}

.align-items-center {
    align-items: center !important;
}

.mr-3 {
    margin-right: 1rem;
}

.bd-1 {
    border-width: 1px;
}

.bd {
    border: 1px solid rgba(72, 94, 144, 0.16);
}

.text-wrap {
    white-space: normal !important;
}

.p-2 {
    padding: 0.5rem !important;
}

.mb-2, .my-2 {
    margin-bottom: 0.5rem !important;
}

.bg-light {
    background-color: #f8f8f8 !important;
}

.justify-content-between {
    justify-content: space-between !important;
}

.mr-1, .mx-1 {
    margin-right: 0.25rem !important;
}
.mb-4 {
    margin-bottom: 1.5rem;
}


/* Bootstrap-inspired spinner for loading animation */
.spinner-border {
    display: inline-block;
    width: var(--spinner-width, 2rem); /* Default size; customizable */
    height: var(--spinner-height, 2rem);
    vertical-align: text-bottom;
    border: var(--spinner-border-width, 0.25em) solid currentColor; /* Uses text color for border */
    border-right-color: transparent; /* Creates the spinning effect */
    border-radius: 50%;
    animation: spinner-border 0.75s linear infinite; /* Rotation animation */
}

.spinner-border-sm {
    --spinner-width: 1rem; /* Smaller size */
    --spinner-height: 1rem;
    --spinner-border-width: 0.2em;
}

@keyframes spinner-border {
    to {
        transform: rotate(360deg); /* Full rotation */
    }
}