﻿/* Import Lato font from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&display=swap');

/* Center the login form */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f8f9fa;
}

.login-form {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
}

    .login-form h2 {
        text-align: center;
        margin-bottom: 1.5rem;
        font-family: 'Lato', sans-serif;
    }

.form-group {
    margin-bottom: 1rem;
    position: relative; /* For positioning the show password toggle */
}

.form-control {
    border-radius: 5px;
    padding: 10px;
    font-size: 16px;
}

.btn-login {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border-radius: 5px;
}

.error-message {
    color: #dc3545;
    text-align: center;
    margin-bottom: 1rem;
    display: none;
}

.session-message {
    color: #007bff;
    text-align: center;
    margin-bottom: 1rem;
}

.error-details {
    font-size: 0.9rem;
    color: #6c757d;
    text-align: center;
    margin-bottom: 1rem;
    display: none;
}

.contact-support {
    text-align: center;
    margin-top: 1rem;
    display: none;
}

    .contact-support a {
        color: #007bff;
        text-decoration: none;
    }

        .contact-support a:hover {
            text-decoration: underline;
        }

/* Theme toggle for consistency with other pages */
.theme-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    position: absolute;
    top: 5px;
    right: 10px;
    z-index: 1000;
    padding: 3px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

/* Dark mode styles */
.dark-mode .login-container {
    background-color: #212529;
}

.dark-mode .login-form {
    background-color: #343a40;
    color: #fff;
}

.dark-mode .form-control {
    background-color: #495057;
    color: #fff;
    border-color: #6c757d;
}

    .dark-mode .form-control::placeholder {
        color: #adb5bd;
    }

.dark-mode .error-details {
    color: #adb5bd;
}

.dark-mode .contact-support a {
    color: #66b0ff;
}

/* Show Password Toggle */
.toggle-password {
    position: absolute;
    right: 10px;
    top: 70%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 14px;
    color: #007bff;
}

.dark-mode .toggle-password {
    color: #66b0ff;
}
