﻿/* Login Page Styles */

.login-page {
    padding-top: 80px; /* Space for fixed navbar */
    background-color: var(--apple-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding-bottom: 80px;
}

.login-container {
    width: 100%;
    max-width: 450px;
    padding: 20px;
}

.login-card {
    background: var(--apple-card-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    backdrop-filter: blur(10px);
}

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

.login-title {
    font-family: 'Inter', sans-serif;
    font-size: 2.2rem;
    color: var(--apple-text);
    margin-bottom: 0.5rem;
}

.login-subtitle {
    color: var(--apple-text-secondary);
}

.login-error-message {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border: 1px solid #dc3545;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    text-align: center;
    display: none; /* Hidden by default */
}

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

.login-form .form-group label {
    display: block;
    color: var(--apple-text);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.input-wrapper {
    position: relative;
}

.input-wrapper i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--apple-text-secondary);
}

.input-wrapper input {
    width: 100%;
    background: var(--apple-bg);
    border: 1px solid var(--border-color);
    color: var(--apple-text);
    padding: 1rem 1rem 1rem 3rem; /* Left padding for icon */
    box-sizing: border-box;
    border-radius: 50px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-wrapper input:focus {
    outline: none;
    border-color: #84cc16;
    box-shadow: 0 0 20px rgba(132, 204, 22, 0.3);
}

.input-wrapper input:focus + i {
    color: #84cc16;
}

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

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--apple-text-secondary);
}

.forgot-password {
    color: #84cc16;
    text-decoration: none;
}

.forgot-password:hover {
    text-decoration: underline;
}

.btn-login-submit {
    width: 100%;
    background: #84cc16;
    color: var(--apple-bg);
    padding: 1rem;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-login-submit:hover {
    background: #a3e635;
    transform: scale(1.02);
}

.login-footer {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.9rem;
    color: var(--apple-text-secondary);
}

.login-footer a {
    color: #84cc16;
    font-weight: 600;
    text-decoration: none;
}

.login-footer a:hover {
    text-decoration: underline;
}

@media (max-width: 480px) {
    .login-card {
        padding: 2rem 1.5rem;
    }
    .login-title {
        font-size: 1.8rem;
    }
}