:root {
    /* Branding colors as specified */
    --navy-blue: #0A192F;
    --white: #FFFFFF;
    --dark-sandal: #C5A059;
    --light-sandal: #dfc89a;
    --text-gray: #a0aec0;
    --border-color: rgba(197, 160, 89, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

html {
    height: auto;
    overflow-y: auto !important;
}

body {
    background-color: var(--navy-blue);
    color: var(--navy-blue);
    min-height: 100vh;
    height: auto;
    overflow-y: auto !important;
    display: flex;
    flex-direction: column;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 3rem;
    background-color: var(--navy-blue);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.navbar .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
}

.navbar .logo i {
    color: var(--dark-sandal);
}

.navbar .logo img {
    max-height: 90px;
    width: auto;
    display: block;
}

.navbar .nav-links {
    display: flex;
    gap: 2rem;
}

.navbar .nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.navbar .nav-links a i {
    color: var(--dark-sandal);
}

.navbar .nav-links a:hover {
    color: var(--dark-sandal);
}

.split-container {
    display: flex;
    width: 100%;
    flex: 1;
    flex-direction: row;
    overflow: hidden;
    align-items: stretch;
}

/* Form Section (Right) */
.form-section {
    width: 50%;
    background-color: var(--navy-blue);
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    /* Match illustration-section margin so the card insets identically */
    padding: 1.5rem 2rem;
    position: relative;
}

.form-container {
    /* Stretch to the same height as the illustration card */
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    max-width: 520px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 18px;
    padding: 3rem 3rem 2.5rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: var(--white);
}

.header p {
    color: var(--text-gray);
    font-size: 1rem;
    margin-bottom: 1.8rem;
}

.input-group {
    margin-bottom: 1.9rem;
    position: relative;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-gray);
    font-size: 0.9rem;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 12px 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-color);
    color: var(--white);
    font-size: 1rem;
    transition: border-color 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.input-group select option {
    background-color: var(--navy-blue);
    color: var(--white);
    padding: 10px;
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-bottom-color: var(--dark-sandal);
}

.input-group input::placeholder {
    color: #586b85;
}

.input-group .icon {
    position: absolute;
    right: 0;
    bottom: 15px;
    color: var(--text-gray);
    cursor: pointer;
    transition: color 0.3s ease;
}

.input-group .icon:hover {
    color: var(--dark-sandal);
}

.options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    font-size: 0.9rem;
}

.options a {
    color: var(--dark-sandal);
    text-decoration: none;
    transition: color 0.3s ease;
}

.options a:hover {
    color: var(--light-sandal);
}

.btn-login {
    width: 100%;
    padding: 14px;
    background-color: var(--dark-sandal);
    color: var(--navy-blue);
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease;
    margin-bottom: 2rem;
}

.btn-login:hover {
    background-color: var(--light-sandal);
}

.btn-login:active {
    transform: scale(0.98);
}

.btn-login:disabled {
    background-color: #586b85;
    cursor: not-allowed;
    color: #a0aec0;
}

.signup-link {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-gray);
}

.signup-link a {
    color: var(--dark-sandal);
    text-decoration: none;
    font-weight: 600;
    margin-left: 5px;
}

.signup-link a:hover {
    text-decoration: underline;
}

/* Illustration Section (Left) */
.illustration-section {
    width: 50%;
    background-color: rgba(255, 255, 255, 0.92);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1.5rem 2rem;
    position: relative;
    background-image: radial-gradient(circle at 100% 100%, rgba(197, 160, 89, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 0% 0%, rgba(10, 25, 47, 0.04) 0%, transparent 50%);
    border-radius: 20px;
    margin: 1.5rem;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.illustration-content {
    text-align: center;
    width: 100%;
    max-width: 750px;
}

.illustration-content h2 {
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--navy-blue);
    line-height: 1.3;
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.illustration-content h2 span {
    font-size: 2.9rem;
    font-weight: 800;
    color: var(--dark-sandal);
    display: block;
    text-transform: none;
    letter-spacing: normal;
    margin-top: 0.15rem;
}

.illustration-content p {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.hero-img {
    width: 100%;
    max-width: 520px;
    height: auto;
    max-height: 40vh;
    object-fit: contain;
    filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.08));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Footer Design */
.footer {
    background-color: var(--navy-blue);
    color: var(--text-gray);
    text-align: center;
    padding: 1.5rem;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
}

/* Responsive Design */
@media (max-width: 900px) {
    .split-container {
        flex-direction: column;
    }

    .form-section {
        width: 100%;
        min-height: calc(100vh - 150px);
        padding: 2rem;
    }

    .illustration-section {
        display: none;
    }

    .navbar {
        padding: 1rem 1.5rem;
        flex-direction: column;
        gap: 1rem;
    }
}

/* Modal Styling (Added for Help Alert) */
.modal-overlay {
    display: none;
    /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(10, 25, 47, 0.6);
    /* Navy blue with opacity */
    backdrop-filter: blur(5px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background-color: var(--white);
    border-radius: 12px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    background-color: var(--navy-blue);
    color: var(--white);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    position: relative;
}

.modal-icon {
    background-color: var(--dark-sandal);
    color: var(--navy-blue);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    margin-right: 15px;
}

.modal-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

.close-modal {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.8rem;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: var(--white);
}

.modal-body {
    padding: 1.5rem;
    color: var(--navy-blue);
}

.modal-body p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    color: #4a5568;
}

.contact-details {
    background-color: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    font-weight: 500;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-item i {
    color: var(--dark-sandal);
    width: 25px;
    font-size: 1.1rem;
}

.modal-footer {
    padding: 1rem 1.5rem 1.5rem;
    display: flex;
    justify-content: flex-end;
}

.btn-ok {
    background-color: var(--navy-blue);
    color: var(--white);
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

/* Main Profile Navbar */
.main-navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 3rem;
    background-color: var(--navy-blue);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.main-navbar .nav-left img {
    height: 60px;
    width: auto;
    display: block;
}

.main-navbar .nav-center h2 {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--white);
}

.main-navbar .nav-right {
    font-size: 1rem;
    color: var(--white);
}

.main-navbar .nav-right strong {
    color: var(--dark-sandal);
}

@media (max-width: 768px) {
    .main-navbar {
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem;
        text-align: center;
    }
}

.btn-ok:hover {
    background-color: #1a365d;
}

/* Media query adjustments for modal */
@media (max-width: 480px) {
    .modal-content {
        width: 95%;
    }
}

/* Header Dropdown Menu */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background-color: var(--white);
    min-width: 180px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    overflow: hidden;
    animation: fadeInDown 0.2s ease forwards;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.dropdown-menu.active {
    display: block;
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: var(--navy-blue);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.dropdown-item i {
    width: 20px;
    margin-right: 10px;
    color: var(--dark-sandal);
    font-size: 1.1rem;
    text-align: center;
}

.dropdown-item:hover {
    background-color: #f7fafc;
    color: var(--dark-sandal);
}

.dropdown-item.text-danger {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.dropdown-item.text-danger:hover {
    background-color: #fff5f5;
    color: #e53e3e;
}

.dropdown-item.text-danger:hover i {
    color: #e53e3e;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Profile Info Cards for Modals */
.profile-info-card {
    padding: 16px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.profile-info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.05);
    border-color: #cbd5e1;
}

.profile-info-label {
    display: block;
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.profile-info-value {
    font-weight: 600;
    color: #1e293b;
    font-size: 1.05rem;
    display: block;
    word-wrap: break-word;
}

.profile-section-title {
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--navy-blue);
    font-size: 1.25rem;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

.profile-section-title i {
    color: var(--dark-sandal);
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.profile-grid-full {
    grid-column: 1 / -1;
}