/* --- Global Styles --- */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f7f6;
    color: #333;
    line-height: 1.6;
}

/* --- Navigation Bar Styles --- */
.navbar {
    background-color: #ffffff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    color: #3f51b5; /* Primary Color */
    font-size: 1.8rem;
    font-weight: 700;
    text-decoration: none;
}

.navbar-menu {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* Base styles for all links/buttons in the menu */
.navbar-menu a, .navbar-menu button {
    text-decoration: none;
    color: #555;
    padding: 8px 15px;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 500;
    background: none;
    border: 1px solid transparent; 
    cursor: pointer;
}

.navbar-menu a:hover, .navbar-menu button:hover {
    color: #3f51b5;
    background-color: #e8eaf6;
    border-color: #c5cae9;
}

/* Primary button style */
.navbar-menu a.btn-primary, 
.navbar-menu button.btn-primary { 
    background-color: #3f51b5;
    color: white !important;
    border-color: #3f51b5;
    box-shadow: 0 2px 5px rgba(63, 81, 181, 0.3);
}

.navbar-menu a.btn-primary:hover, 
.navbar-menu button.btn-primary:hover {
    background-color: #303f9f;
    border-color: #303f9f;
    box-shadow: 0 4px 8px rgba(63, 81, 181, 0.4);
}

/* --- Main Content and Footer --- */
.content {
    min-height: 80vh;
    padding: 2rem 5%;
}

.footer {
    padding: 3rem 5%;
    background-color: #333;
    color: #ccc;
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #444;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #3f51b5;
}

.footer-copyright {
    text-align: center;
    font-size: 0.85rem;
    margin-top: 10px;
}

/* --- Form Card Styles (Auth) --- */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
    padding: 20px;
}

.auth-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 40px;
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.auth-card h2 {
    color: #3f51b5;
    margin-bottom: 25px;
    font-weight: 700;
    font-size: 1.8rem;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box; 
}

.form-control:focus {
    border-color: #3f51b5;
    box-shadow: 0 0 0 3px rgba(63, 81, 181, 0.2);
    outline: none;
}

.auth-button {
    width: 100%;
    padding: 12px;
    background-color: #3f51b5;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s, box-shadow 0.3s;
    margin-top: 10px;
}

.auth-button:hover {
    background-color: #303f9f;
    box-shadow: 0 4px 10px rgba(63, 81, 181, 0.3);
}

.alt-action {
    margin-top: 20px;
    font-size: 0.9rem;
}

.alt-action a {
    color: #3f51b5;
    text-decoration: none;
    font-weight: 600;
}

/* --- Validation Styles --- */
.validation-error {
    font-size: 0.85rem;
    margin-top: 5px;
    padding-left: 5px;
    color: #c62828; /* Red for error/info */
}

.is-invalid {
    border-color: #c62828 !important; /* Red border for errors */
}

.is-valid {
    border-color: #2e7d32 !important; /* Green border for success */
}

.is-valid + .validation-error {
    color: #2e7d32; /* Green text for success message */
}

/* --- Home Page Specific Styles --- */
.hero-section {
    padding: 60px 20px;
    text-align: center;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    margin-top: 20px;
}

.welcome-heading {
    font-size: 3rem;
    color: #3f51b5;
    margin-bottom: 15px;
    font-weight: 800;
}

.tagline {
    font-size: 1.3rem;
    color: #666;
    margin-bottom: 30px;
}

.cta-button {
    display: inline-block;
    width: auto !important; 
    padding: 12px 25px !important;
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 0;
}

/* --- Responsive Design (Public) --- */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        padding: 1rem 5%;
    }
    .navbar-menu {
        margin-top: 10px;
        gap: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }
    .navbar-brand {
        margin-bottom: 10px;
    }
    .footer-links {
        flex-direction: column;
        gap: 10px;
    }
}
