/* /public/css/auth-account.css */

/* --- AUTH PAGE FORM SWITCHING --- */
.auth-card {
    display: none;
}

.auth-card.active {
    display: block;
}

/* --- SHARED STYLES FOR AUTH & ACCOUNT CARDS --- */
.auth-card,
.account-info-card {
    background-color: var(--card-background);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 480px;
}

/* --- SHARED HEADING STYLES --- */
.auth-card h2,
.account-info-card h2 {
    text-align: center;
    margin-top: 0;
    margin-bottom: 2rem;
    color: var(--text-color);
}

/* --- SHARED FORM GROUP STYLES --- */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: var(--secondary-color);
}

/* --- TEXT INPUT STYLING --- */
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ccc;
    border-radius: var(--border-radius);
    background-color: #f9f9f9;
    font-size: 1rem;
    color: var(--text-color);
    box-sizing: border-box; /* Ensures padding doesn't affect width */
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="password"]:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 8px rgba(52, 152, 219, 0.5); /* Subtle glow effect */
}

/* --- BUTTON STYLING --- */
.auth-card button,
.account-info-card button {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: var(--border-radius);
    background-color: var(--secondary-color);
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.auth-card button:hover,
.account-info-card button:hover {
    background-color: #2980b9; /* A slightly darker shade for hover */
}

/* --- LOGOUT BUTTON --- */
#logout-button {
    background-color: var(--accent-color); /* Red for destructive action */
    margin-top: 1.5rem; 
}

#logout-button:hover {
    background-color: #c0392b; /* A darker red for hover */
}
