/* Universal Auth - Main Stylesheet */

/* Base Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 400px;
    margin: 100px auto;
    padding: 20px;
    background-color: #f5f5f5;
}

/* Container Styles */
.auth-container {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h1 {
    color: #333;
    margin-bottom: 10px;
}

.auth-header h1.error {
    color: #dc3545;
}

.auth-header p {
    color: #666;
    margin: 0;
}

/* Loading State */
.loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

/* Error Styles */
.error {
    background-color: #f8d7da;
    color: #721c24;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.error-details {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 20px;
    margin: 20px 0;
    border-left: 4px solid #dc3545;
}

.error-details h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #721c24;
}

.error-message {
    color: #721c24;
    background: #f8d7da;
    padding: 12px;
    border-radius: 4px;
    margin: 10px 0;
}

.error-id {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 12px;
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #dee2e6;
}

/* SSO Login Styles */
.sso-login {
    margin-top: 20px;
}

.sso-btn {
    display: block;
    width: 100%;
    padding: 16px;
    margin-bottom: 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    background: white;
    text-decoration: none;
    color: #333;
    text-align: center;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sso-btn:hover {
    background-color: #f8f9fa;
    text-decoration: none;
    color: #333;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.sso-btn:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
    opacity: 0.6;
}

.sso-btn.google {
    border-color: #db4437;
    color: #db4437;
}

.sso-btn.google:hover {
    background-color: #db4437;
    color: white;
}

.sso-btn.github {
    border-color: #333;
    color: #333;
}

.sso-btn.github:hover {
    background-color: #333;
    color: white;
}

.sso-btn.microsoft {
    border-color: #0078d4;
    color: #0078d4;
}

.sso-btn.microsoft:hover {
    background-color: #0078d4;
    color: white;
}

/* User Info Styles */
.user-info {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 20px;
    margin: 20px 0;
}

.user-info h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
}

.info-item,
.error-item {
    margin-bottom: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

.info-item:last-child,
.error-item:last-child {
    border-bottom: none;
}

.info-item strong,
.error-item strong {
    color: #495057;
    display: inline-block;
    min-width: 140px;
}

.error-item strong {
    min-width: 120px;
}

/* Action Styles */
.session-actions,
.error-actions {
    margin-top: 30px;
    text-align: center;
}

.logout-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.logout-btn:hover:not(:disabled) {
    background: #c82333;
}

.logout-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

.try-again-btn {
    display: inline-block;
    background: #007bff;
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 10px;
}

.try-again-btn:hover {
    background: #0056b3;
    text-decoration: none;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Link Styles */
.auth-links {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.auth-links a {
    color: #007bff;
    text-decoration: none;
}

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

.secondary-link {
    display: block;
    margin-top: 15px;
    color: #6c757d;
    text-decoration: none;
    font-size: 14px;
}

.secondary-link:hover {
    color: #495057;
    text-decoration: underline;
}

/* Utility Classes */
.timestamp {
    font-size: 12px;
    color: #6c757d;
}