/* --- General Styles (can be moved to main style.css) --- */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --light-gray: #f8f9fa;
    --dark-gray: #343a40;
    --border-color: #ced4da;
    --input-bg: #f8f9fa;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: var(--light-gray);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #0056b3;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: #fff;
}

.btn-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #e0e0e0;
    color: #333;
    width: 180px; /* Fixed width for social buttons */
    margin: 5px;
}

.btn-social i {
    margin-right: 10px;
    font-size: 1.2rem;
}

.btn-social.google {
    background-color: #db4437;
    color: #fff;
}

.btn-social.facebook {
    background-color: #4267B2;
    color: #fff;
}

/* --- Header Styles for Login Page --- */
.login-header {
    background: #fff;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.login-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.login-header .logo a {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--dark-gray);
    text-decoration: none;
}

.login-header nav ul {
    list-style: none;
    display: flex;
    margin: 0;
}

.login-header nav ul li {
    margin-left: 25px;
}

.login-header nav ul li a {
    text-decoration: none;
    color: #555;
    font-weight: bold;
    font-size: 1.1rem;
}

/* --- Login Section --- */
.login-section {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
    background-color: var(--light-gray);
}

.login-box {
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 450px; /* Slightly narrower than signup */
    text-align: center;
}

.login-box h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--dark-gray);
}

.login-box .sub-heading {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 30px;
}

.form-group {
    position: relative;
    margin-bottom: 25px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
}

.form-group input[type="email"],
.form-group input[type="password"] {
    width: 100%;
    padding: 12px 15px 12px 45px; /* Padding for icon */
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    background-color: var(--input-bg);
    transition: border-color 0.3s ease;
}

.form-group input[type="email"]:focus,
.form-group input[type="password"]:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-group i {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    color: #aaa;
    font-size: 1rem;
}

.form-group input:focus + i {
    color: var(--primary-color);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    font-size: 0.95rem;
}

.form-options .checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 0; /* Override signup checkbox margin */
}

.form-options .checkbox-group input[type="checkbox"] {
    margin-right: 10px;
    transform: scale(1.1);
    cursor: pointer;
}

.form-options .checkbox-group label {
    font-weight: normal;
    color: #555;
    margin-bottom: 0;
}

.form-options a {
    font-weight: bold;
}

.login-box .btn.btn-primary {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.login-options-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.login-options-footer p {
    margin-bottom: 15px;
    font-size: 1rem;
    color: #555;
}

.login-options-footer p a {
    font-weight: bold;
}

.social-login {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.social-login p {
    margin-bottom: 15px;
    font-weight: bold;
    color: #555;
}

.social-login .btn-social {
    width: 220px;
    margin: 5px 0;
}

/* Error message styling */
.form-group input.input-error {
    border-color: var(--danger-color);
}

.form-group .error-message {
    color: var(--danger-color);
    font-size: 0.85rem;
    display: block;
    margin-top: 5px;
    text-align: left;
}


/* --- Footer Styles for Login Page --- */
.login-footer {
    background: var(--dark-gray);
    color: #bbb;
    padding: 20px 0;
    text-align: center;
    margin-top: auto;
    font-size: 0.9rem;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .login-header .container {
        flex-direction: column;
        gap: 15px;
    }
    .login-header nav ul {
        flex-direction: column;
        gap: 10px;
    }
    .login-header nav ul li {
        margin-left: 0;
    }

    .login-box {
        padding: 30px;
        margin: 20px;
    }

    .login-box h2 {
        font-size: 2rem;
    }

    .form-options {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .form-options .checkbox-group {
        margin-bottom: 0; /* Ensure it aligns correctly */
    }

    .form-options a {
        margin-top: 5px; /* Space it out */
    }

    .form-group input[type="email"],
    .form-group input[type="password"] {
        padding: 10px 15px 10px 40px;
    }

    .social-login {
        flex-direction: column;
        width: 100%;
    }
    .btn-social {
        width: 100%;
    }
}



/* ===== Logo Styling ===== */
.logo {
  display: flex;
  align-items: center;
}

.logo a {
  display: inline-block;
  text-decoration: none;
}

.logo img {
  width: 120px;     /* adjust size to fit header */
  height: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.logo img:hover {
  transform: scale(1.05);   /* slight zoom on hover */
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 768px) {
  .logo img {
    width: 90px; /* smaller logo on mobile */
  }
}