/* File: css/login.css */

/* We are using the same layout and card styles as the signup page */
body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 1rem 0;
}

.auth-container {
    width: 100%;
    max-width: 450px; /* Slightly smaller for fewer fields */
    margin: 1rem;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.auth-card {
    background: var(--bg-color-alt);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.card-header {
    text-align: center;
    margin-bottom: 2rem;
}

.card-header h1 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.card-header p {
    color: #666;
    font-size: 1rem;
}

.input-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.input-group .material-icons {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    transition: color 0.3s ease;
}

.input-group input {
    width: 100%;
    padding: 0.9rem 1rem 0.9rem 3rem; /* Left padding for icon */
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(106, 90, 249, 0.15);
}

.input-group input:focus ~ .material-icons {
    color: var(--primary-color);
}

.auth-btn {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.auth-btn:disabled {
    background-color: #a9a2f5;
    cursor: not-allowed;
}

.message {
    padding: 0.9rem;
    border-radius: 8px;
    margin-top: 1rem;
    text-align: center;
    font-size: 0.95rem;
}

.error-message {
    color: var(--danger-color);
    background-color: #fdedec;
    border: 1px solid #eabeb9;
}

.card-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.95rem;
}

.card-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.card-footer a:hover {
    text-decoration: underline;
}