/* Dark mode authentication pages styles */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #1a1a1a;
    color: #e0e0e0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    max-width: 400px;
    width: 100%;
    background-color: #2d2d2d;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    text-align: center;
}

h1, h2 {
    color: #ffffff;
    margin-bottom: 30px;
    font-weight: 300;
}

h2 {
    font-size: 1.8em;
    margin-bottom: 40px;
}

/* Google Sign-In Button Styling */
.g_id_signin {
    margin: 20px 0;
}

/* Status messages */
#status {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    font-weight: 500;
    min-height: 20px;
}

#status.success {
    background-color: #2d5a2d;
    color: #4caf50;
    border: 1px solid #4caf50;
}

#status.error {
    background-color: #5a2d2d;
    color: #f44336;
    border: 1px solid #f44336;
}

#status.info {
    background-color: #2d3d5a;
    color: #2196f3;
    border: 1px solid #2196f3;
}

/* Auth User Actions */
#authUserActions {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #444;
}

#authUserActions h2 {
    margin-bottom: 20px;
    font-size: 1.4em;
}

#authUserActions a {
    color: #4a9eff;
    text-decoration: none;
    display: inline-block;
    padding: 10px 20px;
    background-color: #3d3d3d;
    border-radius: 6px;
    transition: all 0.3s ease;
    margin: 10px 0;
}

#authUserActions a:hover {
    background-color: #4a4a4a;
    color: #6bb6ff;
    transform: translateY(-2px);
}

/* Logout Button */
#logoutBtn {
    background-color: #f44336;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    margin: 10px 0;
}

#logoutBtn:hover {
    background-color: #d32f2f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.3);
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #4a9eff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Responsive design */
@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .container {
        padding: 30px 20px;
    }
    
    h2 {
        font-size: 1.5em;
    }
}

/* Google Sign-In specific styling */
.g_id_signin[data-theme="dark"] {
    --gsi-button-width: 100%;
    --gsi-button-height: 50px;
}

/* Custom Google button styling */
.g_id_signin iframe {
    border-radius: 8px !important;
}

/* Error states */
.error-message {
    background-color: #5a2d2d;
    color: #f44336;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    border: 1px solid #f44336;
}

/* Success states */
.success-message {
    background-color: #2d5a2d;
    color: #4caf50;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    border: 1px solid #4caf50;
}

/* Link styling */
a {
    color: #4a9eff;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #6bb6ff;
    text-decoration: underline;
}

/* Form elements */
input, button, select, textarea {
    font-family: inherit;
}

/* Focus states */
button:focus, a:focus {
    outline: 2px solid #4a9eff;
    outline-offset: 2px;
}

/* Animation for page load */
.container {
    animation: fadeInUp 0.6s ease-out;
}

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