/**
 * Authentication Page CSS for Miura Portal AI
 * Styles specific to the authentication page
 */

/* Base Styles */
body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #0D1B2A 0%, #1A2B3C 100%);
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

/* Authentication Container */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

/* Authentication Card */
.auth-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    width: 100%;
    max-width: 500px;
    overflow: hidden;
}

/* Logo Container */
.logo-container {
    background: linear-gradient(135deg, #007BFF 0%, #0056b3 100%);
    border-radius: 20px 20px 0 0;
    padding: 2rem;
    text-align: center;
}

.logo-container img {
    height: 4rem;
    margin: 0 auto 1rem;
    filter: brightness(0) invert(1);
}

.logo-container h1 {
    font-size: 1.875rem;
    font-weight: bold;
    color: white;
    margin: 0 0 0.5rem;
}

.logo-container p {
    color: #93c5fd;
    margin: 0;
    font-size: 1rem;
}

/* Authentication Form */
.auth-form {
    padding: 2rem;
}

.auth-form h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 0.5rem;
    text-align: center;
}

.auth-form p {
    color: #6b7280;
    margin: 0 0 2rem;
    text-align: center;
    font-size: 0.875rem;
}

/* Google Sign-In Button */
.google-signin-container {
    text-align: center;
    margin-bottom: 1.5rem;
}

/* Loading State */
.loading-state {
    text-align: center;
    margin-top: 1.5rem;
    display: none;
}

.loading-state.show {
    display: block;
}

.loading-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007BFF;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

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

.loading-state p {
    color: #6b7280;
    margin: 0;
    font-size: 0.875rem;
}

/* Messages */
.error-message,
.success-message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 16px;
    display: none;
    align-items: center;
}

.error-message {
    background-color: #fee2e2;
    border: 1px solid #fecaca;
    color: #dc2626;
}

.success-message {
    background-color: #d1fae5;
    border: 1px solid #a7f3d0;
    color: #059669;
}

.error-message.show,
.success-message.show {
    display: flex;
}

.error-message svg,
.success-message svg {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    flex-shrink: 0;
}

/* Footer */
.auth-footer {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.875rem;
    color: #6b7280;
}

.auth-footer p {
    margin: 0 0 0.5rem;
}

.auth-footer a {
    color: #007BFF;
    text-decoration: none;
}

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

/* Responsive Design */
@media (max-width: 640px) {
    .auth-container {
        padding: 0.5rem;
    }
    
    .auth-card {
        border-radius: 16px;
    }
    
    .logo-container {
        padding: 1.5rem;
        border-radius: 16px 16px 0 0;
    }
    
    .logo-container h1 {
        font-size: 1.5rem;
    }
    
    .auth-form {
        padding: 1.5rem;
    }
    
    .auth-form h2 {
        font-size: 1.25rem;
    }
}

/* Animation for card entrance */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-card {
    animation: slideInUp 0.6s ease-out;
}

/* Hover effects */
.auth-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 32px 64px -12px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Focus styles for accessibility */
.auth-card:focus-within {
    outline: 2px solid #007BFF;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .auth-card {
        background: white;
        border: 2px solid #000;
    }
    
    .logo-container {
        background: #000;
    }
    
    .error-message {
        background: #ffebee;
        border-color: #f44336;
        color: #c62828;
    }
    
    .success-message {
        background: #e8f5e8;
        border-color: #4caf50;
        color: #2e7d32;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .auth-card {
        animation: none;
    }
    
    .loading-spinner {
        animation: none;
    }
    
    .auth-card:hover {
        transform: none;
    }
}
