/* Custom CSS to override or extend Tailwind, and for animations */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* Define a more vibrant color palette */
    --primary-text-color: #f8fafc; /* Light text for contrast */
    --secondary-text-color: #cbd5e1; /* Slightly darker light text */
    --accent-color-1: #3b82f6; /* Blue for primary actions/highlights */
    --accent-color-2: #6d28d9; /* Purple for secondary highlights */
    --card-bg-opacity: 0.15; /* Slightly less opaque for better blur */
    --button-bg-opacity: 0.25; /* More visible button */
    --button-hover-bg-opacity: 0.45;
    --input-border-color: #e2e8f0; /* Lighter border for inputs */
    --input-focus-border-color: var(--accent-color-1);
    /* Updated background image with a more vibrant, blurred style */
    --background-image: url('https://images.unsplash.com/photo-1542435503-956c469947f6?ixlib=rb-4.0.3&q=85&fm=jpg&crop=entropy&cs=srgb&w=1920&h=1080&fit=crop');
}

body {
    font-family: 'Inter', sans-serif; /* Using Inter font as per guidelines */
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-image: var(--background-image);
    background-size: cover;
    background-position: center;
    /* Overlay for better contrast and modern look */
    position: relative;
    isolation: isolate; /* To ensure z-index context for pseudo-element */
}

/* Gradient overlay for the background image */
body::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(30, 60, 90, 0.7), rgba(100, 40, 120, 0.7)); /* Darker, more vibrant gradient */
    z-index: -1;
}


.login-container {
    width: 90%; /* Responsive width */
    max-width: 400px; /* Max width for desktop */
    padding: 2.5rem; /* Increased padding */
    background: rgba(255, 255, 255, var(--card-bg-opacity)); /* Semi-transparent white */
    border-radius: 1.5rem; /* More rounded corners */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2); /* Enhanced shadow */
    backdrop-filter: blur(15px); /* Stronger blur effect */
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    flex-direction: column;
    gap: 1.5rem; /* Consistent spacing */
    text-align: center;
    animation: fadeIn 1s ease-out; /* Simple fade-in animation */
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.login-container h2 {
    font-size: 2.5rem; /* Adjusted font size for heading */
    color: var(--primary-text-color);
    margin: 0;
    font-weight: 700; /* Bolder font for heading */
    letter-spacing: 0.05em; /* Slightly increased letter spacing */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3); /* Text shadow for depth */
}

.input-group {
    position: relative;
    width: 100%;
    margin-bottom: 1.25rem;
}

.input-group input {
    width: 100%;
    padding: 0.75rem 0.5rem; /* Adjusted padding */
    background: rgba(255, 255, 255, 0.1); /* Slightly visible input background */
    border: 1px solid rgba(255, 255, 255, 0.3); /* Initial border */
    border-radius: 0.5rem; /* Rounded input fields */
    outline: none;
    color: var(--primary-text-color);
    font-size: 1.05em;
    transition: all 0.3s ease; /* Smooth transition for all properties */
}

.input-group input::placeholder {
    color: var(--secondary-text-color);
    opacity: 0.8; /* Make placeholder slightly less visible */
}

.input-group input:focus {
    border-color: var(--input-focus-border-color); /* Highlight on focus */
    background: rgba(255, 255, 255, 0.2); /* Slightly brighter on focus */
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.4); /* Focus ring effect */
}

.options-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95em;
    margin-bottom: 1.25rem;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    gap: 0.5rem; /* Gap between items when wrapped */
}

.options-group a {
    color: var(--secondary-text-color);
    text-decoration: none;
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

.options-group a:hover {
    color: var(--accent-color-1); /* Highlight on hover */
    text-decoration: underline;
}

.remember-me {
    color: var(--primary-text-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer; /* Indicate it's clickable */
}

.remember-me input[type="checkbox"] {
    appearance: none; /* Hide default checkbox */
    width: 1.1em;
    height: 1.1em;
    border: 2px solid var(--secondary-text-color);
    border-radius: 0.25em;
    background-color: transparent;
    display: grid;
    place-content: center;
    transition: all 0.2s ease;
}

.remember-me input[type="checkbox"]::before {
    content: "";
    width: 0.65em;
    height: 0.65em;
    transform: scale(0);
    transition: transform 0.2s ease;
    box-shadow: inset 1em 1em var(--accent-color-1); /* Checked state color */
    border-radius: 0.15em;
}

.remember-me input[type="checkbox"]:checked::before {
    transform: scale(1);
}

.remember-me input[type="checkbox"]:focus {
    border-color: var(--accent-color-1);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.4);
}

.login-button {
    width: 100%;
    padding: 1rem; /* Increased padding for a larger button */
    background: rgba(255, 255, 255, var(--button-bg-opacity)); /* Semi-transparent button background */
    border: none;
    border-radius: 0.75rem; /* More rounded button */
    font-size: 1.25em;
    font-weight: 600; /* Slightly bolder */
    color: var(--primary-text-color); /* Button text color */
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.login-button:hover {
    background: rgba(255, 255, 255, var(--button-hover-bg-opacity));
    transform: translateY(-2px); /* Slight lift effect */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    color: var(--accent-color-1); /* Highlight text on hover */
}

.register-link {
    font-size: 0.95em;
    color: var(--primary-text-color); /* Ensure consistent text color */
}

.register-link a {
    color: var(--accent-color-2); /* A different accent color for register link */
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

.register-link a:hover {
    color: var(--accent-color-1);
    text-decoration: underline;
}