/* Base Layout Fixes */
.signin-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh; /* Centers card vertically between header and footer */
    padding: 2rem;
    background-color: #f4f4f4; /* Optional subtle background */
}

/* Auth Card Container */
.auth-card {
    background: #fff;
    border-radius: 12px;
    padding: 2.5rem;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15); /* Softened shadow */
}

/* Typography */
.auth-card h2 {
    text-align: center;
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
    color: #1a1a2e;
}

.auth-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

/* Form Elements */
.input-group {
    margin-bottom: 1.2rem;
}

.auth-card label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.4rem;
}

.auth-card input[type="email"],
.auth-card input[type="password"] {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    box-sizing: border-box; /* Crucial: ensures padding doesn't break width */
    transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-card input:focus {
    outline: none;
    border-color: #FFD700;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.15);
}

/* Buttons */
.auth-btn {
    display: block;
    width: 100%;
    padding: 0.85rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    background: linear-gradient(135deg, #000000, #333);
    color: #FFD700;
    transition: transform 0.1s, opacity 0.2s;
}

.auth-btn:hover {
    opacity: 0.9;
}

.auth-btn:active {
    transform: scale(0.98); /* Tactile click effect */
}

/* Separator & Google Button */
.separator {
    text-align: center;
    margin: 1.5rem 0;
    color: #888;
    font-size: 0.8rem;
    position: relative;
}

.g_id_signin {
    margin-bottom: 1rem;
}

/* Links & Navigation */
.auth-links {
    text-align: center;
    margin-top: 1.5rem;
}

.auth-links p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
    color: #666;
}

.auth-links a {
    color: #1a1a2e;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.auth-links a:hover {
    text-decoration: underline;
}

/* Success View */
#logged-in-view {
    text-align: center;
}

#user-email-display {
    font-weight: bold;
    color: #1a1a2e;
    margin: 1rem 0;
    word-break: break-all;
}

/* Utility */
.hidden {
    display: none !important;
}

/* Responsive Styles */
@media (max-width: 480px) {
    .auth-card {
        padding: 1.5rem;
        box-shadow: none; /* Cleaner look on mobile */
    }
}