/* General Styles */
body {
    font-family: 'Nunito Sans', sans-serif;
    background-color: #f9fbfd;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 500px;
    margin: 20px auto;
    background-color: #ffffff; /* White background for clarity */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Login Container */
.login-container {
    text-align: center;
}

.login-container h1 {
    font-size: 2em;
    color: #333;
    margin-bottom: 20px;
}

/* Flash Messages */
.flashes {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.flashes li {
    background-color: #ffdddd;
    color: #d9534f; /* Red for error messages */
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
}

/* Google Login Button */
.google-login-button {
    display: inline-block;
    padding: 10px 15px;
    font-size: 1em;
    color: #ffffff;
    background-color: #db4437; /* Google red */
    border: none;
    border-radius: 5px;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.google-login-button:hover {
    background-color: #c23321;
    transform: scale(1.02); /* Subtle zoom on hover */
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
    position: relative;
}

.divider hr {
    flex: 1;
    border: none;
    height: 1px;
    background-color: #ccc;
    margin: 0 10px;
}

.divider span {
    font-size: 0.9em;
    color: #777;
}

/* Email/Password Login Form */
.horizontal-form {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 20px;
}

.horizontal-form .form-group {
    flex: 1;
}

.horizontal-form .form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
}

.horizontal-form button {
    padding: 10px 15px;
    background-color: #007bff; /* Bootstrap Primary Blue */
    color: #ffffff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.horizontal-form button:hover {
    background-color: #0056b3;
    transform: scale(1.02);
}

/* Forgot Password Link */
.forgot-password-link {
    display: block;
    margin-top: 10px;
    color: #007bff;
    font-size: 0.9em;
    text-decoration: none;
}

.forgot-password-link:hover {
    text-decoration: underline;
}

/* Register Link */
.register-link {
    margin-top: 20px;
    font-size: 0.9em;
    color: #333;
}

.register-link a {
    color: #007bff;
    text-decoration: none;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        margin: 10px;
        padding: 15px;
    }

    .login-container h1 {
        font-size: 1.8em;
    }

    .google-login-button {
        width: 100%; /* Full-width button for smaller screens */
    }

    .horizontal-form {
        flex-direction: column; /* Stack inputs and button vertically */
    }

    .horizontal-form .form-group {
        margin-bottom: 10px;
    }

    .horizontal-form button {
        width: 100%; /* Full-width button for smaller screens */
    }
}
