﻿.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e7eb 100%);
}

.login-card {
    width: 100%;
    max-width: 420px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
}

.login-header {
    background: linear-gradient(90deg, var(--secondary-color), #34495e); /* Ensure --secondary-color is defined or replace */
    color: white;
    padding: 25px 30px;
    text-align: center;
    position: relative;
}

.login-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.logo-circle {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #2980b9, var(--primary-color)); /* Ensure --primary-color is defined or replace */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(25, 118, 210, 0.3);
}

.login-title {
    margin: 10px 0 0;
    font-size: 22px;
    font-weight: 500;
}

.login-subtitle {
    margin: 5px 0 0;
    font-size: 14px;
    opacity: 0.85;
}

.login-body {
    padding: 30px;
}

.login-form .form-group {
    margin-bottom: 20px;
}

.login-form label {
    display: block;
    margin-bottom: 8px;
    color: var(--gray-700); /* Ensure --gray-700 is defined or replace */
    font-weight: 500;
    font-size: 14px;
}

.login-form input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--gray-300); /* Ensure --gray-300 is defined or replace */
    border-radius: 6px;
    font-size: 15px;
    transition: all 0.2s ease;
}

    .login-form input:focus {
        border-color: var(--primary-color); /* Ensure --primary-color is defined or replace */
        box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.1);
        outline: none;
    }

.password-field {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray-600); /* Ensure --gray-600 is defined or replace */
    cursor: pointer;
    padding: 5px;
}

.remember-me {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

    .remember-me input {
        width: auto;
        margin-right: 8px;
    }

.login-button {
    width: 100%;
    padding: 13px;
    background: linear-gradient(to right, var(--primary-color), #2980b9); /* Ensure --primary-color is defined or replace */
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(41, 128, 185, 0.3);
}

    .login-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 10px rgba(41, 128, 185, 0.4);
    }

.login-footer {
    text-align: center;
    padding: 20px 30px;
    background-color: var(--gray-100); /* Ensure --gray-100 is defined or replace */
    border-top: 1px solid var(--gray-200); /* Ensure --gray-200 is defined or replace */
}

    .login-footer a {
        color: var(--primary-color); /* Ensure --primary-color is defined or replace */
        text-decoration: none;
        font-size: 14px;
    }

        .login-footer a:hover {
            text-decoration: underline;
        }

.auth-error {
    background-color: #fdedee;
    color: #e53e3e;
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
    display: none; /* Initially hidden */
}

    .auth-error.show {
        display: block;
    }

.test-mode-notice {
    background-color: #fff8e6;
    border-left: 3px solid #f5a623;
    color: #664d03;
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
}
/* Define CSS variables if they are not in the linked stylesheets */
:root {
    --primary-color: #1976d2; /* Example Blue */
    --secondary-color: #2c3e50; /* Example Dark Blue/Grey */
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-600: #6c757d;
    --gray-700: #495057;
}
