* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 40px;
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.auth-container h1 {
    color: #333;
    margin-bottom: 10px;
    font-size: 28px;
    font-weight: 600;
}

.auth-container p {
    color: #666;
    margin-bottom: 30px;
    font-size: 16px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-form h2 {
    color: #333;
    margin-bottom: 10px;
    font-size: 24px;
    font-weight: 600;
}

.auth-form input {
    padding: 14px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    outline: none;
}

.auth-form input:focus {
    border-color: #667eea;
}

.auth-form input::placeholder {
    color: #9ca3af;
}

.auth-form button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-top: 8px;
}

.auth-form button:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.auth-form button:active {
    transform: translateY(0);
}

.secondary-btn {
    background: #f8f9fa !important;
    color: #667eea !important;
    border: 2px solid #667eea !important;
}

.secondary-btn:hover {
    background: #667eea !important;
    color: white !important;
}

.auth-links {
    margin-top: 20px;
    text-align: center;
}

.auth-links a {
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.auth-links a:hover {
    color: #764ba2;
    text-decoration: underline;
}

.auth-error {
    background: #fee2e2;
    color: #dc2626;
    padding: 12px;
    border-radius: 6px;
    margin-top: 16px;
    font-size: 14px;
    border-left: 4px solid #dc2626;
}

.auth-success {
    background: #dcfce7;
    color: #16a34a;
    padding: 12px;
    border-radius: 6px;
    margin-top: 16px;
    font-size: 14px;
    border-left: 4px solid #16a34a;
}

.success-container {
    text-align: center;
    padding: 20px;
}

.success-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.success-container h2 {
    color: #16a34a;
    margin-bottom: 15px;
    font-size: 24px;
}

.success-container p {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.5;
}

.hidden {
    display: none !important;
}

/* Google Sign-In Button */
.google-signin-btn {
    background: white !important;
    color: #3c4043 !important;
    border: 2px solid #dadce0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-weight: 500 !important;
    transition: all 0.2s ease;
}

.google-signin-btn:hover {
    background: #f8f9fa !important;
    border-color: #d2d3d4 !important;
    box-shadow: 0 1px 3px rgba(60, 64, 67, 0.3) !important;
}

.google-icon {
    width: 20px;
    height: 20px;
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 8px 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e1e5e9;
}

.divider span {
    padding: 0 12px;
    color: #9ca3af;
    font-size: 14px;
    font-weight: 500;
}

/* Loading spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#loading-auth, #loading-reset {
    text-align: center;
    padding: 40px 20px;
}

#loading-auth p, #loading-reset p {
    color: #666;
    margin: 0;
}

/* Responsive design */
@media (max-width: 480px) {
    .auth-container {
        padding: 30px 20px;
        margin: 10px;
    }
    
    .auth-container h1 {
        font-size: 24px;
    }
    
    .auth-form input,
    .auth-form button {
        padding: 12px;
        font-size: 16px; /* Prevent zoom on iOS */
    }
}

/* Focus styles for accessibility */
.auth-form button:focus,
.auth-links a:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Smooth transitions */
.auth-form,
.success-container,
#loading-auth,
#loading-reset {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Google Sign-In Button */
.google-signin-btn {
    background: white !important;
    color: #3c4043 !important;
    border: 2px solid #dadce0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-weight: 500 !important;
    transition: all 0.2s ease;
}

.google-signin-btn:hover {
    background: #f8f9fa !important;
    border-color: #d2d3d4 !important;
    box-shadow: 0 1px 3px rgba(60, 64, 67, 0.3) !important;
}

.google-icon {
    width: 20px;
    height: 20px;
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 8px 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e1e5e9;
}

.divider span {
    padding: 0 12px;
    color: #9ca3af;
    font-size: 14px;
    font-weight: 500;
}
