:root {
    --navy-blue: #001f3f;
    --gold: #FFD700;
    --white: #ffffff;
    --light-grey: #f4f4f4;
    --dark-grey: #333;
    --medium-grey: #ccc;
}

/* Loading Bar Styles */
.loading-bar-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 31, 63, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-bar {
    width: 300px;
    height: 8px;
    background-color: rgba(255, 215, 0, 0.2);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.loading-progress {
    height: 100%;
    background: linear-gradient(90deg, #FFD700, #FFF8DC);
    width: 0%;
    animation: loadingAnimation 2s ease-in-out forwards;
    box-shadow: 0 0 10px #FFD700;
}

@keyframes loadingAnimation {
    0% {
        width: 0%;
    }
    50% {
        width: 70%;
    }
    100% {
        width: 100%;
    }
}

.loading-text {
    color: #FFD700;
    margin-top: 20px;
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 1px;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--light-grey);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: var(--dark-grey);
}

.container {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
    margin: 20px;
}

.header {
    margin-bottom: 20px;
}

.logo {
    width: 80px; /* Adjust as needed */
    margin-bottom: 10px;
}

h1 {
    color: var(--navy-blue);
    margin-bottom: 5px;
    font-size: 1.8em;
}

h2 {
    color: var(--dark-grey);
    font-size: 1em;
    font-weight: normal;
    margin-top: 0;
}

h3 {
    color: var(--navy-blue);
    margin-bottom: 20px;
}

.form-toggle {
    display: flex;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--medium-grey);
}

.form-toggle button {
    flex: 1;
    padding: 12px 15px;
    border: none;
    background-color: transparent;
    cursor: pointer;
    font-size: 1em;
    color: var(--dark-grey);
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.form-toggle button.active {
    color: var(--navy-blue);
    border-bottom-color: var(--gold);
    font-weight: bold;
}

.form-toggle button:hover:not(.active) {
    background-color: var(--light-grey);
}

.form-section {
    display: none;
    text-align: left;
}

.form-section.active {
    display: block;
}

.input-group {
    margin-bottom: 15px;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: var(--dark-grey);
}

.input-group input[type="email"],
.input-group input[type="password"] {
    width: calc(100% - 20px);
    padding: 10px;
    border: 1px solid var(--medium-grey);
    border-radius: 4px;
    font-size: 1em;
}

.btn {
    display: block;
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 4px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn.primary {
    background-color: var(--navy-blue);
    color: var(--white);
    margin-top: 20px;
}

.btn.primary:hover {
    background-color: #003366; /* Slightly darker navy */
}

.forgot-password {
    text-align: center;
    margin-top: 15px;
    font-size: 0.9em;
}

.forgot-password a {
    color: var(--navy-blue);
    text-decoration: none;
}

.forgot-password a:hover {
    text-decoration: underline;
}

footer {
    margin-top: 30px;
    font-size: 0.8em;
    color: var(--dark-grey);
    text-align: center;
}

footer p {
    margin: 0;
}
