/* CSS for login.html */

body {
    background-color: #f4f7f6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.login-container {
    background: #ffffff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 420px;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
    margin: 80px auto;
}

h1 {
    color: #2563eb;
    margin-bottom: 30px;
    font-size: 2.2rem;
    font-weight: 800;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #444;
    font-size: 0.9rem;
}

.form-group input[type="email"],
.form-group input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    border: 1.5px solid #eee;
    border-radius: 10px;
    font-size: 1rem;
    box-sizing: border-box;
    transition: all 0.3s ease;
    background-color: #fcfcfc;
}

.form-group input:focus {
    outline: none;
    border-color: #2563eb;
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

button[type="submit"] {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2);
    margin-top: 20px;
}

button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
    filter: brightness(1.05);
}

button[type="submit"]:active {
    transform: translateY(0);
}

.login-page-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.login-card {
    background: white;
    width: 100%;
    max-width: 440px;
    padding: 3rem 2.5rem;
    border-radius: 28px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    animation: slideUp 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.login-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.login-logo {
    height: 50px;
    margin-bottom: 1.5rem;
}

.login-header h1 {
    font-size: 1.85rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.login-header .subtitle {
    color: #64748b;
    font-size: 0.95rem;
    margin-top: 0.5rem;
}

.premium-form .form-group {
    margin-bottom: 1.5rem;
}

.premium-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: #475569;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.premium-form label i {
    color: #2563eb;
}

.premium-form input[type="email"],
.premium-form input[type="password"] {
    width: 100%;
    padding: 14px 18px;
    border-radius: 14px;
    border: 2px solid #f1f5f9;
    background: #f8fafc;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.2s;
}

.premium-form input:focus {
    border-color: #2563eb;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    outline: none;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
    font-weight: 500;
}

.forgot-password a {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
}

.premium-btn {
    width: 100%;
    padding: 16px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 16px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.2);
}

.premium-btn:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(37, 99, 235, 0.3);
}

.login-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #f1f5f9;
}

.login-footer p {
    color: #64748b;
    font-size: 0.95rem;
}

.login-footer a {
    color: #2563eb;
    font-weight: 700;
    text-decoration: none;
}

.support-info {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.8rem;
    color: #94a3b8;
}

.support-info a {
    color: #64748b;
    text-decoration: underline;
}

#caps-lock-warning {
    color: #f59e0b;
    font-size: 0.8rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
}

p {
    margin-top: 30px;
    color: #888;
    font-size: 0.95rem;
}

p a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}

p a:hover {
    text-decoration: underline;
}

/* Flash messages styling */
.flash-messages {
    padding: 0;
    margin-bottom: 20px;
}

.flash-message {
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 10px;
    list-style: none;
    font-weight: 500;
    font-size: 0.9rem;
}

.flash-message.error {
    background-color: #fff2f2;
    color: #dc3545;
    border: 1px solid #ffcccc;
}

.flash-message.success {
    background-color: #f2fff2;
    color: #28a745;
    border: 1px solid #ccffcc;
}

.hidden {
    display: none !important;
}

.checkbox-group input {
    width: 18px;
    height: 18px;
}

.checkbox-group label {
    margin-bottom: 0;
    font-weight: normal;
    color: #555;
}

.forgot-password-link {
    margin-top: 15px;
    text-align: right;
}

.forgot-password-link a {
    color: #6b7280;
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.2s;
}

.forgot-password-link a:hover {
    color: #2563eb;
    text-decoration: underline;
}