/* auth.css - Styles for Login/Signup */

/* --- LAYOUT --- */
.auth-section {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
    padding: 20px;
}

.auth-card {
    width: 100%;
    max-width: 400px;
    background: var(--card-bg-color);
    padding: 30px 25px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* --- GOOGLE BUTTON --- */
.google-btn {
    width: 100%;
    display: flex; align-items: center; justify-content: center; gap: 12px;
    background: #ffffff; color: #333;
    border: none; border-radius: 25px;
    padding: 14px;
    font-size: 1em; font-weight: bold; font-family: sans-serif;
    cursor: pointer;
    margin-bottom: 25px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.google-btn:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(255,255,255,0.2); }
.google-btn img { width: 20px; height: 20px; }

/* --- DIVIDER --- */
.divider {
    position: relative; margin-bottom: 25px; color: #666; font-size: 0.8em; font-weight: bold;
}
.divider::before, .divider::after {
    content: ""; position: absolute; top: 50%; width: 42%; height: 1px; background: #444;
}
.divider::before { left: 0; }
.divider::after { right: 0; }

/* --- TABS --- */
.auth-tabs {
    display: flex; justify-content: space-around; margin-bottom: 20px;
    border-bottom: 2px solid #333;
}
.tab-btn {
    flex-grow: 1; background: transparent;
    color: #888; border: none; padding: 12px;
    cursor: pointer; font-weight: bold; font-size: 1em;
    border-bottom: 3px solid transparent; transition: all 0.3s;
}
.tab-btn.active {
    color: var(--secondary-color);
    border-bottom-color: var(--secondary-color);
}

/* --- FORMS --- */
.auth-view { display: none; animation: fadeIn 0.3s; }
.auth-view.active { display: block; }
@keyframes fadeIn { from{opacity:0;transform:translateY(5px)} to{opacity:1;transform:translateY(0)} }

input {
    width: 100%; padding: 14px; margin-bottom: 12px;
    border-radius: 8px; border: 1px solid #444;
    background: rgba(0,0,0,0.2); color: var(--text-color);
    font-size: 1em;
}
input:focus { outline: none; border-color: var(--secondary-color); background: rgba(0,0,0,0.4); }

.control-btn {
    width: 100%; padding: 14px;
    background-color: var(--secondary-color); color: #000;
    border: none; border-radius: 25px;
    font-weight: bold; font-size: 1.1em;
    cursor: pointer; margin-top: 10px;
    transition: filter 0.2s;
}
.control-btn:hover { filter: brightness(1.1); }

.switch-msg {
    margin-top: 15px; font-size: 0.85em; color: var(--text-muted);
    cursor: pointer; text-decoration: underline;
}
.switch-msg:hover { color: var(--secondary-color); }

/* --- STATUS MESSAGES --- */
.auth-status-message {
    margin-top: 20px; padding: 10px; border-radius: 6px;
    font-size: 0.9em; line-height: 1.4; min-height: 20px;
}
.auth-status-message.processing { color: #fbbc05; background: rgba(251, 188, 5, 0.1); }
.auth-status-message.success { color: #00e676; background: rgba(0, 230, 118, 0.1); border: 1px solid #00e676; }
.auth-status-message.error { color: #ff1744; background: rgba(255, 23, 68, 0.1); border: 1px solid #ff1744; }

/* Light Mode */
body.light-mode .auth-card { border-color: #ddd; }
body.light-mode input { background: #f0f0f0; border-color: #ccc; color: #333; }
body.light-mode .google-btn { background: #f5f5f5; border: 1px solid #ddd; }


/* Add to auth.css */

/* Spinner Animation */
.loader-spinner {
    width: 30px; height: 30px;
    border: 3px solid rgba(255,255,255,0.1);
    border-top-color: var(--secondary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.auth-card {
    /* Ensure card handles varying heights gracefully */
    min-height: 300px;
    display: flex; flex-direction: column; justify-content: center;
}
