/**
 * Login Page Styles
 * Separate CSS file for login page
 */

* {
    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 50%, #f093fb 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 450px;
}

.login-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 40px 30px;
    text-align: center;
}

.logo {
    font-size: 4em;
    margin-bottom: 10px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.login-header h1 {
    font-size: 1.8em;
    margin-bottom: 5px;
    font-weight: 700;
}

.login-header p {
    font-size: 1.1em;
    opacity: 0.9;
}

.login-body {
    padding: 40px 30px;
}

.login-body h2 {
    font-size: 1.8em;
    color: #2c3e50;
    margin-bottom: 10px;
}

.subtitle {
    color: #666;
    font-size: 1em;
    margin-bottom: 30px;
}

.microsoft-login-btn {
    width: 100%;
    padding: 15px 20px;
    background: #2f2f2f;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.microsoft-login-btn:hover {
    background: #1f1f1f;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.microsoft-login-btn:active {
    transform: translateY(0);
}

.microsoft-icon {
    width: 21px;
    height: 21px;
}

.login-info {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #e0e0e0;
}

.login-info p {
    color: #666;
    font-size: 0.9em;
    text-align: center;
}

.login-footer {
    background: #f8f9fa;
    padding: 20px;
    text-align: center;
    border-top: 1px solid #e0e0e0;
}

.login-footer p {
    color: #666;
    font-size: 0.85em;
}

/* Loading state */
.microsoft-login-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.microsoft-login-btn.loading::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 480px) {
    .login-card {
        border-radius: 15px;
    }
    
    .login-header {
        padding: 30px 20px;
    }
    
    .login-header h1 {
        font-size: 1.5em;
    }
    
    .login-body {
        padding: 30px 20px;
    }
    
    .login-body h2 {
        font-size: 1.5em;
    }
}
