/* 
 * ==========================================
 * Login Page Stylesheet
 * ==========================================
 * This stylesheet defines the visual appearance 
 * of the login page, focusing on a modern, 
 * glassmorphism-inspired design.
 */

/* 
 * 1. Form Container
 * Centers the form on the screen with flexible padding.
 * Uses viewport height to ensure it takes up significant space vertically.
 */
.form_container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    padding: 20px;
}

/* 
 * 2. Main Form Card (Glassmorphism Effect)
 * Applies a semi-transparent white background with a backdrop blur.
 */
.form {
    background: rgba(255, 255, 255, 0.8); /* Semi-transparent white */
    backdrop-filter: blur(12px); /* Glassmorphism blur effect */
    -webkit-backdrop-filter: blur(12px); /* Safari support */
    border-radius: 16px; /* Rounded corners */
    padding: 40px;
    width: 100%;
    max-width: 420px; /* Restrict width on larger screens */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08); /* Soft drop shadow */
    border: 1px solid rgba(255, 255, 255, 0.4); /* Light border to enhance glass effect */
}

/* 
 * 3. Typography: Heading
 * Centers the heading and provides breathing room below.
 */
.form h1 {
    text-align: center;
    color: #1f2937; /* Dark gray for high contrast */
    margin-bottom: 30px;
    font-size: 2.2rem;
    font-weight: 700;
}

/* 
 * 4. Form Groups
 * Spacing between each input section.
 */
.form-group {
    margin-bottom: 20px;
}

/* 
 * 5. Input Labels
 * Displays labels prominently above their respective inputs.
 */
.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #4b5563; /* Medium gray */
    font-weight: 500;
    font-size: 0.95rem;
}

/* 
 * 6. Input Fields
 * Soft borders, comfortable padding, and smooth transition effects.
 */
.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #e5e7eb; /* Subtle light gray border */
    border-radius: 8px;
    font-size: 1rem;
    color: #111827;
    background-color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease; /* Smooth transition for focus and hover states */
    box-sizing: border-box; /* Ensures padding does not affect total width */
}

/* Input hover effect */
.form-group input:hover {
    border-color: #d1d5db;
}

/* Input focus effect: Highlight border and add glow */
.form-group input:focus {
    outline: none;
    border-color: #3b82f6; /* Primary blue border */
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15); /* Soft blue glow */
    background-color: #ffffff; /* Solid white background on focus */
}

/* 
 * 7. Submit Button
 * Full-width, prominent primary action button.
 */
.form button {
    width: 100%;
    padding: 14px;
    background-color: #3b82f6; /* Primary blue */
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s; /* Interaction animations */
    margin-top: 10px;
}

/* Button hover effect: Darker shade of blue */
.form button:hover {
    background-color: #2563eb;
}

/* Button active effect: Slight shrink when clicked */
.form button:active {
    transform: scale(0.98);
}

/* 
 * 8. Bottom Link Text
 * Styling for the "Don't have an account? Register" text.
 */
.form p {
    text-align: center;
    margin-top: 25px;
    color: #6b7280;
    font-size: 0.95rem;
}

/* 
 * 9. Links
 * Primary brand color for links with an underline on hover.
 */
.form p a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

/* Link hover effect */
.form p a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}
