/* auth.css */

/* General Body Styling for Dark Mode */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh; /* Full viewport height */
    background-color: #1a1a1a; /* Very dark background */
    color: #e0e0e0; /* Light text color for contrast */
    padding: 20px; /* Add some padding for smaller screens */
    box-sizing: border-box; /* Include padding in element's total width and height */
}

/* Form Container Styling */
form {
    background-color: #2b2b2b; /* Slightly lighter dark background for the form */
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5); /* Stronger, darker shadow */
    width: 100%;
    max-width: 400px; /* Limit form width */
    text-align: center;
    box-sizing: border-box;
    border: 1px solid #3a3a3a; /* Subtle border */
}

/* Heading Styling */
h1 {
    color: #4CAF50; /* A pleasant green for your brand name */
    margin-bottom: 30px;
    font-size: 2.5em;
    text-shadow: 0 0 8px rgba(76, 175, 80, 0.4); /* Soft glow effect */
}

/* Input Fields Styling */
input[type="text"],
input[type="password"] {
    width: calc(100% - 20px); /* Full width minus padding */
    padding: 15px 10px;
    margin-bottom: 20px;
    border: 1px solid #555; /* Darker border */
    border-radius: 5px;
    background-color: #3a3a3a; /* Darker input background */
    color: #e0e0e0; /* Light text in inputs */
    font-size: 1em;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input[type="text"]::placeholder,
input[type="password"]::placeholder {
    color: #b0b0b0; /* Lighter placeholder text */
}

input[type="text"]:focus,
input[type="password"]:focus {
    border-color: #4CAF50; /* Green border on focus */
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.6); /* Green glow on focus */
    outline: none; /* Remove default outline */
}

/* Remember Me Checkbox Styling */
label[for="remember_me"] {
    display: flex; /* Use flexbox to align checkbox and text */
    align-items: center; /* Vertically align items */
    justify-content: flex-start; /* Align to the start (left) */
    margin-bottom: 25px;
    cursor: pointer;
    font-size: 0.95em;
    color: #c0c0c0;
}

input[type="checkbox"] {
    appearance: none; /* Hide default checkbox */
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #555;
    border-radius: 3px;
    background-color: #3a3a3a;
    margin-right: 10px;
    cursor: pointer;
    position: relative;
    top: 1px; /* Adjust vertical alignment */
    transition: background-color 0.3s, border-color 0.3s;
}

input[type="checkbox"]:checked {
    background-color: #4CAF50; /* Green when checked */
    border-color: #4CAF50;
}

input[type="checkbox"]:checked::after {
    content: '\2713'; /* Unicode checkmark character */
    font-size: 14px;
    color: #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    line-height: 1; /* Adjust line-height to center vertically */
}


/* Button Styling */
button[type="submit"] {
    background-color: #4CAF50; /* Green button */
    color: white;
    padding: 15px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    width: 100%;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-bottom: 20px;
}

button[type="submit"]:hover {
    background-color: #45a049; /* Darker green on hover */
    transform: translateY(-2px); /* Slight lift effect */
}

button[type="submit"]:active {
    transform: translateY(0); /* Press effect */
}

/* Paragraph Text Styling */
p {
    color: #a0a0a0; /* Slightly lighter gray for general text */
    font-size: 0.85em;
    line-height: 1.5;
    margin-bottom: 10px;
}

/* Link Styling */
a {
    color: #66BB6A; /* Lighter green for links */
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #4CAF50; /* Brighter green on link hover */
    text-decoration: underline;
}

/* Responsive Adjustments */
@media (max-width: 500px) {
    form {
        padding: 30px 20px;
        margin: 0 10px; /* Add margin for small screens */
    }

    h1 {
        font-size: 2em;
    }

    input[type="text"],
    input[type="password"],
    button[type="submit"] {
        padding: 12px 10px;
        font-size: 0.95em;
    }

    p {
        font-size: 0.8em;
    }
}

/* Accessibility (Optional but Recommended) */
/* Add focus styles for keyboard navigation */
input:focus,
button:focus,
a:focus,
input[type="checkbox"]:focus {
    outline: 2px solid #66BB6A;
    outline-offset: 2px;
}


/* auth.css - Add these rules to your existing file */

/* General Input Fields Styling (already existing, just for context) */
input[type="text"],
input[type="password"],
/* Add email and date types here to apply base styles */
input[type="email"],
input[type="date"] {
    width: calc(100% - 20px); /* Full width minus padding */
    padding: 15px 10px;
    margin-bottom: 20px;
    border: 1px solid #555; /* Darker border */
    border-radius: 5px;
    background-color: #3a3a3a; /* Darker input background */
    color: #e0e0e0; /* Light text in inputs */
    font-size: 1em;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Placeholder Styling (already existing, just for context) */
input[type="text"]::placeholder,
input[type="password"]::placeholder,
/* Add email type here for consistent placeholder styling */
input[type="email"]::placeholder {
    color: #b0b0b0; /* Lighter placeholder text */
}

/* Focus Styling (already existing, just for context) */
input[type="text"]:focus,
input[type="password"]:focus,
/* Add email and date types here for consistent focus styling */
input[type="email"]:focus,
input[type="date"]:focus {
    border-color: #4CAF50; /* Green border on focus */
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.6); /* Green glow on focus */
    outline: none; /* Remove default outline */
}


/* --- Specific Styling for Date Inputs --- */

/* Style for date input text */
input[type="date"] {
    /* The base styles from above will apply.
       We might need additional styling to make the date picker icon consistent. */
}

/* Styling the WebKit (Chrome/Safari) date input clear/calendar icon */
input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1); /* Invert colors to make the icon visible on dark background */
    cursor: pointer;
    font-size: 1.2em; /* Make icon slightly larger */
    padding: 0 5px; /* Add some padding around the icon */
}

/* Styling the Firefox date input clear/calendar icon */
input[type="date"]::-moz-calendar-picker-indicator {
    filter: invert(1); /* Invert colors for Firefox */
    cursor: pointer;
    font-size: 1.2em;
    padding: 0 5px;
}

/* Adjusting date input text color for older browsers/default date display */
/* This ensures the displayed date is readable even before it's focused */
input[type="date"] {
    color-scheme: dark; /* Hints to browser to use dark mode for date picker pop-up */
}