/* Reset and base styles */
* {
    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;
    color: #333;
}

/* Header styles */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-left {
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo i {
    font-size: 2rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.auth-buttons {
    display: flex;
    gap: 1rem;
}

.btn-primary, .btn-secondary, .btn-warning {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #f8f9fa;
    color: #333;
    border: 2px solid #e9ecef;
}

.btn-secondary:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.btn-warning {
    background: #ffc107;
    color: #333;
}

.btn-warning:hover {
    background: #e0a800;
    transform: translateY(-2px);
}

/* Auth page styles */
.auth-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 80px);
    padding: 2rem;
}

.auth-container {
    width: 100%;
    max-width: 450px;
}

.auth-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header i {
    font-size: 3rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.auth-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: #666;
    font-size: 1rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-group {
    position: relative;
}

.input-group i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 1.1rem;
}

.input-group input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.input-group input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.input-group input::placeholder {
    color: #999;
}

.btn-auth {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 1rem;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.btn-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.btn-auth:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-auth:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Loading spinner animation */
.fa-spinner {
    animation: spin 1s linear infinite;
}

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

.auth-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
}

.auth-footer a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

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

/* Google Login Styles */
.divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 0px;
    background: transparent;
}

.divider span {
    background: white;
    padding: 0 15px;
    color: #000000;
    font-size: 14px;
    font-weight: 500;
}

.btn-google {
    width: 80%;
    max-width: 300px;
    padding: 18px 28px;
    background: white;
    color: #333;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
}

.btn-google:hover {
    background: #f8f9fa;
    border-color: #cbd5e0;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-google i {
    font-size: 18px;
    color: #4285f4;
}

/* Input validation styles */
.input-group.error input {
    border-color: #dc3545;
    background: #fff5f5;
}

.error-message {
    display: none;
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    align-items: center;
    gap: 0.5rem;
}

.error-message i {
    position: static;
    transform: none;
    font-size: 0.875rem;
}

/* Notification styles */
.notification {
    position: fixed;
    top: 30px;
    right: 30px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 1.5rem 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 10000;
    max-width: 450px;
    min-width: 350px;
    animation: slideIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.notification.success {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1) 0%, rgba(255, 255, 255, 0.95) 100%);
    border-left: 5px solid #28a745;
    box-shadow: 0 20px 40px rgba(40, 167, 69, 0.2);
}

.notification.error {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.1) 0%, rgba(255, 255, 255, 0.95) 100%);
    border-left: 5px solid #dc3545;
    box-shadow: 0 20px 40px rgba(220, 53, 69, 0.2);
}

.notification.info {
    background: linear-gradient(135deg, rgba(23, 162, 184, 0.1) 0%, rgba(255, 255, 255, 0.95) 100%);
    border-left: 5px solid #17a2b8;
    box-shadow: 0 20px 40px rgba(23, 162, 184, 0.2);
}

.notification i {
    font-size: 1.5rem;
    padding: 0.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    min-height: 2.5rem;
}

.notification.success i {
    color: white;
    background: linear-gradient(135deg, #28a745, #20c997);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.notification.error i {
    color: white;
    background: linear-gradient(135deg, #dc3545, #e74c3c);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.notification.info i {
    color: white;
    background: linear-gradient(135deg, #17a2b8, #6f42c1);
    box-shadow: 0 4px 15px rgba(23, 162, 184, 0.3);
}

.notification span {
    flex: 1;
    font-size: 1rem;
    font-weight: 500;
    color: #2d3748;
    line-height: 1.4;
}

.notification-close {
    background: rgba(0, 0, 0, 0.05);
    border: none;
    color: #718096;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.notification-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #2d3748;
    transform: scale(1.1);
}

@keyframes slideIn {
    0% {
        transform: translateX(100%) scale(0.8);
        opacity: 0;
    }
    50% {
        transform: translateX(-10%) scale(1.05);
        opacity: 0.8;
    }
    100% {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

@keyframes slideOut {
    0% {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateX(100%) scale(0.8);
        opacity: 0;
    }
}

/* Responsive notification */
@media (max-width: 768px) {
    .notification {
        top: 20px;
        right: 20px;
        left: 20px;
        max-width: none;
        min-width: auto;
        padding: 1.25rem 1.5rem;
    }
    
    .notification i {
        font-size: 1.25rem;
        min-width: 2rem;
        min-height: 2rem;
    }
    
    .notification span {
        font-size: 0.9rem;
    }
}

/* User info styles */
.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-info span {
    font-weight: 600;
    color: #333;
}

/* Dashboard styles */
.dashboard-page {
    padding: 2rem;
    min-height: calc(100vh - 80px);
}

.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
}

.welcome-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.welcome-header {
    text-align: center;
    margin-bottom: 2rem;
}

.welcome-header i {
    font-size: 3rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.welcome-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
}

.welcome-header p {
    color: #666;
    font-size: 1rem;
}

.user-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid #667eea;
}

.stat-item i {
    font-size: 2rem;
    color: #667eea;
}

.stat-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25rem;
}

.stat-content p {
    color: #666;
    font-size: 0.9rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.dashboard-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.admin-card {
    border: 2px solid #ff6b6b;
    background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 100%);
}

.admin-card .card-header {
    color: #d63031;
}

.admin-card .card-header i {
    color: #ff6b6b;
}

.admin-card .btn-primary {
    background: linear-gradient(135deg, #ff6b6b 0%, #d63031 100%);
}

.admin-card .btn-primary:hover {
    background: linear-gradient(135deg, #d63031 0%, #a02929 100%);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.card-header i {
    font-size: 2rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
}

.card-content p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Responsive design */
@media (max-width: 768px) {
    .header {
        padding: 1rem;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .header-left .logo h1 {
        font-size: 1.2rem;
    }
    
    .header-right .user-info {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-end;
    }
    
    .auth-card {
        padding: 1.5rem;
        margin: 1rem;
        border-radius: 16px;
    }
    
    .auth-header h2 {
        font-size: 1.5rem;
    }
    
    .auth-header p {
        font-size: 0.9rem;
    }
    
    .input-group input {
        padding: 0.875rem 0.875rem 0.875rem 2.5rem;
        font-size: 0.95rem;
    }
    
    .input-group i {
        left: 0.875rem;
        font-size: 1rem;
    }
    
    .btn-auth {
        padding: 0.875rem;
        font-size: 1rem;
    }
    
    .btn-google {
        width: 100%;
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
    
    .user-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-item {
        padding: 1rem;
    }
    
    .stat-item i {
        font-size: 1.5rem;
    }
    
    .stat-content h3 {
        font-size: 1rem;
    }
    
    .stat-content p {
        font-size: 0.85rem;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .dashboard-card {
        padding: 1.5rem;
        border-radius: 12px;
    }
    
    .card-header h3 {
        font-size: 1.3rem;
    }
    
    .card-header i {
        font-size: 1.5rem;
    }
    
    .card-content p {
        font-size: 0.95rem;
    }
    
    .btn-primary {
        padding: 0.75rem 1.25rem;
        font-size: 0.95rem;
    }
    
    .welcome-header h2 {
        font-size: 1.5rem;
    }
    
    .welcome-header p {
        font-size: 0.9rem;
    }
    
    .welcome-header i {
        font-size: 2.5rem;
    }
    
    .notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        padding: 1rem;
    }
    
    .notification i {
        font-size: 1.1rem;
        min-width: 1.8rem;
        min-height: 1.8rem;
    }
    
    .notification span {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 0.5rem;
    }
    
    .header-left .logo h1 {
        font-size: 1rem;
    }
    
    .header-right .user-info span {
        font-size: 0.8rem;
    }
    
    .btn-secondary {
        padding: 0.4rem 0.6rem;
        font-size: 0.75rem;
    }
    
    .auth-card {
        padding: 1rem;
        margin: 0.5rem;
        border-radius: 12px;
    }
    
    .auth-header h2 {
        font-size: 1.3rem;
    }
    
    .auth-header p {
        font-size: 0.85rem;
    }
    
    .auth-header i {
        font-size: 2rem;
    }
    
    .input-group input {
        padding: 0.75rem 0.75rem 0.75rem 2.25rem;
        font-size: 0.9rem;
    }
    
    .input-group i {
        left: 0.75rem;
        font-size: 0.9rem;
    }
    
    .btn-auth {
        padding: 0.75rem;
        font-size: 0.95rem;
    }
    
    .btn-google {
        padding: 0.875rem 1.25rem;
        font-size: 0.95rem;
    }
    
    .stat-item {
        padding: 0.75rem;
    }
    
    .stat-item i {
        font-size: 1.25rem;
    }
    
    .stat-content h3 {
        font-size: 0.9rem;
    }
    
    .stat-content p {
        font-size: 0.8rem;
    }
    
    .dashboard-card {
        padding: 1rem;
    }
    
    .card-header h3 {
        font-size: 1.1rem;
    }
    
    .card-header i {
        font-size: 1.25rem;
    }
    
    .card-content p {
        font-size: 0.9rem;
    }
    
    .btn-primary {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .welcome-header h2 {
        font-size: 1.3rem;
    }
    
    .welcome-header p {
        font-size: 0.85rem;
    }
    
    .welcome-header i {
        font-size: 2rem;
    }
    
    .notification {
        padding: 0.75rem;
    }
    
    .notification i {
        font-size: 1rem;
        min-width: 1.5rem;
        min-height: 1.5rem;
    }
    
    .notification span {
        font-size: 0.85rem;
    }
}

/* Python Version Display Styles */
.python-version-display {
    margin-right: 1rem;
    padding: 0.5rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    min-width: 200px;
}

.version-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.version-optimized {
    color: #28a745;
}

.version-compatible {
    color: #ffc107;
}

.version-icon {
    font-size: 1rem;
}

.version-text {
    font-weight: 600;
    font-size: 0.9rem;
}

.version-status {
    font-size: 0.8rem;
    font-weight: 500;
}

.version-details {
    color: #666;
    font-size: 0.75rem;
    line-height: 1.2;
}

.version-details small {
    display: block;
    margin-bottom: 0.1rem;
}

/* Responsive design for Python version display */
@media (max-width: 768px) {
    .python-version-display {
        margin-right: 0.5rem;
        min-width: 150px;
    }
    
    .version-text {
        font-size: 0.8rem;
    }
    
    .version-status {
        font-size: 0.7rem;
    }
    
    .version-details {
        font-size: 0.7rem;
    }
}

/* MFA Specific Styles */
.mfa-step {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid #667eea;
}

.mfa-step h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mfa-step h3 i {
    color: #667eea;
}

.qr-container {
    display: flex;
    justify-content: center;
    margin: 1.5rem 0;
}

.qr-code {
    background: white;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.qr-placeholder {
    width: 200px;
    height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #999;
    border: 2px dashed #ddd;
    border-radius: 8px;
}

.qr-placeholder i {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.secret-key-container {
    display: flex;
    gap: 0.5rem;
    margin: 1rem 0;
}

.secret-key-container input {
    flex: 1;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    background: white;
    border: 2px solid #e9ecef;
    padding: 0.75rem;
    border-radius: 8px;
}

.btn-copy {
    background: #667eea;
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-copy:hover {
    background: #5a6fd8;
    transform: translateY(-1px);
}

.backup-codes-container {
    margin: 1.5rem 0;
}

.backup-codes-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.5rem;
    margin: 1rem 0;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.backup-code {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 4px;
    text-align: center;
    border: 1px solid #e9ecef;
}

.mfa-success {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    border-radius: 12px;
    margin-top: 1.5rem;
}

.mfa-success i {
    font-size: 3rem;
    color: #28a745;
    margin-bottom: 1rem;
}

.mfa-success h4 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #155724;
    margin-bottom: 0.5rem;
}

.mfa-success p {
    color: #155724;
    margin-bottom: 1.5rem;
}

.mfa-help {
    text-align: center;
    margin-top: 1.5rem;
    padding: 1rem;
    background: #e3f2fd;
    border-radius: 8px;
    border-left: 4px solid #2196f3;
}

.mfa-help p {
    color: #1976d2;
    margin-bottom: 0.5rem;
}

.mfa-help i {
    color: #2196f3;
    margin-right: 0.5rem;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.modal-content {
    background: white;
    border-radius: 16px;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e9ecef;
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-header h3 i {
    color: #667eea;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #999;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.modal-close:hover {
    color: #333;
    background: #f8f9fa;
}

.modal-body {
    padding: 2rem;
}

.modal-body h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
    margin-top: 1.5rem;
}

.modal-body h4:first-child {
    margin-top: 0;
}

.modal-body ol, .modal-body ul {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.modal-body li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.modal-body strong {
    color: #333;
}

@keyframes modalSlideIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* MFA Management Modal Styles */
.mfa-status {
    text-align: center;
    margin-bottom: 2rem;
}

.mfa-status h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin: 1rem 0 0.5rem 0;
}

.mfa-status p {
    color: #666;
    margin-bottom: 0;
}

.mfa-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.mfa-actions button {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mfa-actions .btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.mfa-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.mfa-actions .btn-secondary {
    background: #f8f9fa;
    color: #333;
    border: 2px solid #e9ecef;
}

.mfa-actions .btn-secondary:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

/* Responsive MFA styles */
@media (max-width: 768px) {
    .mfa-step {
        padding: 1rem;
    }
    
    .qr-placeholder {
        width: 150px;
        height: 150px;
    }
    
    .secret-key-container {
        flex-direction: column;
    }
    
    .backup-codes-list {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .modal-content {
        margin: 1rem;
        max-height: 90vh;
    }
    
    .modal-header, .modal-body {
        padding: 1rem;
    }
    
    .mfa-actions {
        flex-direction: column;
    }
}

/* Contact info styling */
.contact-info {
    margin-top: 10px;
    font-size: 0.9em;
    color: #666;
    text-align: center;
}

.contact-info a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* ========================================
   Google MFA Verify Page Styles
   ======================================== */
.verification-input {
    text-align: center;
    font-size: 32px;
    font-family: 'Courier New', monospace;
    letter-spacing: 8px;
    padding: 20px;
    border: 3px solid #007bff;
    border-radius: 12px;
    width: 100%;
    max-width: 300px;
    margin: 30px auto;
    display: block;
    transition: all 0.3s ease;
}
.verification-input:focus {
    border-color: #0056b3;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.25);
}
.info-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 12px;
    margin: 25px 0;
    text-align: center;
}
.info-box i {
    font-size: 48px;
    margin-bottom: 15px;
}
.info-box h3 {
    margin: 10px 0;
    font-size: 20px;
}
.info-box p {
    margin: 5px 0;
    opacity: 0.9;
}
.attempt-warning {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 12px;
    margin: 15px 0;
    border-radius: 0 8px 8px 0;
    color: #856404;
    display: none;
}
.attempt-warning.show {
    display: block;
}
.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}
.loading-overlay.active {
    display: flex;
}
.loader {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #007bff;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.help-text {
    text-align: center;
    color: #666;
    font-size: 14px;
    margin-top: 20px;
}
.help-text i {
    color: #007bff;
}

/* ========================================
   Google MFA Setup Page Styles
   ======================================== */
.qr-code-container {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin: 20px 0;
    text-align: center;
}
.qr-code-svg {
    max-width: 300px;
    margin: 20px auto;
    display: flex;
    justify-content: center;
    align-items: center;
}
.qr-code-svg svg {
    max-width: 100%;
    height: auto;
    display: block;
}
.secret-key {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border: 2px dashed #007bff;
    margin: 15px 0;
    word-break: break-all;
    color: #333;
}
.instruction-list {
    text-align: left;
    background: #e7f3ff;
    border-left: 4px solid #007bff;
    padding: 20px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
}
.instruction-list ol {
    margin: 10px 0;
    padding-left: 20px;
}
.instruction-list li {
    margin: 8px 0;
    color: #333;
}

/* ========================================
   Login Page Styles
   ======================================== */
.btn-google {
    background: #4285f4;
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
    width: 100% !important;
    max-width: 100% !important;
    margin: 15px auto !important;
    box-shadow: 0 2px 4px rgba(66,133,244,0.3);
}

.btn-google:hover {
    background: #357ae8;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(66,133,244,0.4);
}

.btn-google:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(66,133,244,0.3);
}

.btn-google i {
    font-size: 22px;
    color: #fff;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
    color: #999;
}

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

.auth-divider span {
    padding: 0 15px;
    font-size: 14px;
    font-weight: 500;
}
