/*
 * File: login-style.css
 * Description: A modern, responsive stylesheet for the login page.
 */

:root {
    --primary-color: #007bff;
    --primary-hover-color: #0056b3;
    --form-background: rgba(255, 255, 255, 0.95);
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body, html {
    height: 100%;
    margin: 0;
    font-family: var(--font-family);
    line-height: 1.6;
}

.bg-image {
    height: 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.login-wrapper {
    width: 100%;
    max-width: 420px;
    padding: 40px;
    background: var(--form-background);
    backdrop-filter: blur(10px); /* Glassmorphism effect */
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.login-wrapper h2 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #333;
    font-size: 2em;
    font-weight: 600;
}

.login-wrapper p {
    margin-bottom: 30px;
    color: #666;
    font-size: 1.1em;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box; /* Crucial for correct sizing */
    font-size: 1em;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

.btn {
    width: 100%;
    padding: 14px;
    background-image: linear-gradient(to right, #007bff, #0056b3);
    border: none;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.form-links {
    margin-top: 25px;
    font-size: 0.9em;
}

.form-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.form-links a:hover {
    text-decoration: underline;
}

.form-links span {
    margin: 0 10px;
    color: #aaa;
}

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: .25rem;
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
    text-align: center;
}

