* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(to bottom right, #e3f2fd, #ffffff);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    animation: fadeIn 1.2s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

a {
    text-decoration: none;
    color: #0066cc;
}

a:hover {
    text-decoration: underline;
}

header {
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo h1 {
    font-size: 1.8rem;
    color: #0066cc;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links li a {
    font-weight: 600;
    font-size: 1rem;
    color: #444;
    padding: 0.5rem 0;
    transition: color 0.3s;
}

.nav-links li a:hover {
    color: #0066cc;
}

.nav-links li a.active {
    color: #0066cc;
    border-bottom: 3px solid #0066cc;
    padding-bottom: 0.4rem;
}

main {
    max-width: 500px;
    margin: 3rem auto;
    padding: 0 5%;
    text-align: center;
    flex: 1;
}

.auth-section h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #222;
}

.auth-section > p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 2rem;
}

.form-box {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    animation: slideUp 0.8s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.form-box input {
    width: 100%;
    padding: 0.9rem;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}

.form-box input:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.2);
}

.form-box button {
    width: 100%;
    padding: 0.9rem;
    background-color: #0066cc;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.form-box button:hover {
    background-color: #0055aa;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 102, 204, 0.3);
}

.switch {
    margin-top: 1.5rem;
    font-size: 0.95rem;
}

.switch a {
    color: #0066cc;
    font-weight: 600;
}

.switch a:hover {
    text-decoration: underline;
}

.forgot {
    margin-top: 1rem;
    font-size: 0.9rem;
}

.forgot a {
    color: #0066cc;
}

.forgot a:hover {
    text-decoration: underline;
}

/* Flash Messages */
.flash-messages {
    margin-top: 1rem;
}

.flash {
    padding: 0.75rem;
    border-radius: 5px;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.flash.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.flash.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.flash.info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

footer {
    background-color: #333;
    color: white;
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.9rem;
}

.contact-info p {
    margin-bottom: 0.5rem;
}

.contact-info strong {
    font-size: 1.1rem;
    color: #0066cc;
}

.quick-links a {
    color: #aaa;
}

.quick-links a:hover {
    color: white;
    text-decoration: underline;
}

.copyright {
    color: #999;
    font-size: 0.85rem;
    width: 100%;
    text-align: center;
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .form-box {
        padding: 2rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}