/* Import a custom font if desired, e.g., Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap'); 

/* login_style.css - UPDATED BACKGROUND */

:root {
    /* Kept for consistency of the form elements */
    --primary-color: #004d40; /* Dark Teal (Professional School Color) */
    --secondary-color: #f5f5f5;
    --text-color: #333;
    --input-bg: rgba(255, 255, 255, 0.7);
    --input-border: #ccc;
    --shadow: 0 6px 20px rgba(0, 0, 0, 0.2); /* Slightly stronger shadow */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    /* NEW PROFESSIONAL BACKGROUND */
    /* Use a simple, soft gradient for a cleaner look */
    background: linear-gradient(135deg, #e0f2f1 0%, #b2dfdb 100%); /* Light Mint/Teal Gradient */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    font-family: Arial, sans-serif;
}

.login-container {
    width: 90%;
    max-width: 380px;
    
    /* BACKGROUND REMAINS GLASSSY, but over a cleaner backdrop */
    background: rgba(255, 255, 255, 0.9); /* More opaque white background */
    padding: 30px;
    border-radius: 15px;
    backdrop-filter: blur(8px);
    box-shadow: var(--shadow);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.5); /* Subtle white border for depth */
}

/* User Icon Styling - Adjusted colors for the new theme */
.user-icon {
    font-size: 3rem;
    color: var(--primary-color); /* Dark Teal color */
    width: 80px;
    height: 80px;
    line-height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background-color: #e0f2f1; /* Lightest mint color */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
}

/* Input Fields and Groups */
.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-group input {
    width: 100%;
    /* ORIGINAL: padding: 12px 15px 12px 40px; */
    padding: 12px 40px 12px 40px; /* Adjust right padding to 40px */
    border: 1px solid var(--input-border);
    border-radius: 8px;
    background-color: var(--input-bg);
    color: var(--text-color);
    font-size: 1em;
    outline: none;
    transition: all 0.3s;
}

/* Add this specific rule for the password field */
#password {
    padding-right: 45px; /* Increase padding specifically for the password field */
}transition: all 0.3s;
}

.input-group input::placeholder {
    color: #888;
}

.input-group input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(0, 77, 64, 0.5);
}

/* Icon inside input field */
.input-group i {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    color: #888;
    font-size: 1.1em;
}

/* Utility Links */
.utility-links {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 25px;
}

.forgot-password {
    color: var(--primary-color); /* Use professional teal color */
    text-decoration: none;
    font-size: 0.9em;
    transition: color 0.3s;
}

.forgot-password:hover {
    color: #00796b; /* Lighter teal on hover */
}

/* Login Button */
#login-btn {
    width: 100%;
    padding: 15px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s, transform 0.1s;
}

#login-btn:hover {
    background-color: #00796b;
}

#login-btn:active {
    transform: translateY(2px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Alert Message Styling (No changes needed here, as the colors are already defined) */
.alert-message {
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 5px;
    text-align: left;
    font-size: 0.9em;
    display: block;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.hidden {
    display: none;
}

/* Eye Icon for Password Visibility */
#togglePassword {
    position: absolute;
    top: 50%;
    right: 15px; /* Position it on the right side */
    transform: translateY(-50%);
    cursor: pointer;
    z-index: 10; /* Ensure it's above the input field */
    color: #888;
    font-size: 1.1em;
}

#togglePassword:hover {
    color: var(--primary-color); /* Matches your theme color on hover */
}

/* --- DASHBOARD/GENERAL SITE STYLES (For future use) --- */

/* Sidebar/Navigation Styling */
.sidebar {
    height: 100%;
    width: 250px;
    position: fixed;
    top: 0;
    left: 0;
    background-color: var(--primary-color); /* Dark Teal background */
    padding-top: 20px;
    color: white;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
}

.sidebar a {
    padding: 15px 25px;
    text-decoration: none;
    font-size: 1.1em;
    color: var(--secondary-color); /* Light text */
    display: block;
    transition: background-color 0.3s;
}

.sidebar a:hover {
    background-color: #00796b; /* Lighter teal on hover */
}

.sidebar h2 {
    text-align: center;
    margin-bottom: 30px;
    color: white;
    font-weight: 400;
}

/* Main Content Area for Dashboard */
.main-content {
    margin-left: 250px; /* Space for the fixed sidebar */
    padding: 20px;
    background-color: #f8f9fa; /* Very light background for content */
    min-height: 100vh;
}

/* Dashboard Card/Widget Styling */
.dashboard-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    border-left: 5px solid var(--primary-color);
}