/* Authentication Styles for Scheduler Dashboard */

:root {
    --primary-blue: #1263FF;
    --success-green: #28a745;
    --warning-orange: #fd7e14;
    --danger-red: #dc3545;
    --light-gray: #f8f9fa;
    --border-gray: #dee2e6;
    --dark-gray: #343a40;
}

body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
}

.login-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    animation: slideUp 0.6s ease-out;
}

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

.login-header {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    padding: 40px 30px 30px;
    text-align: center;
    position: relative;
}

.login-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.logo-section {
    position: relative;
    z-index: 1;
}

.logo-icon {
    font-size: 48px;
    margin-bottom: 15px;
    display: block;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.brand-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 5px 0;
    letter-spacing: -0.5px;
}

.brand-title em {
    font-style: italic;
    color: #fff;
}

.app-title {
    font-size: 20px;
    font-weight: 500;
    margin: 0 0 10px 0;
    opacity: 0.95;
}

.login-subtitle {
    font-size: 14px;
    opacity: 0.8;
    margin: 0;
    font-weight: 300;
}

.login-form-container {
    padding: 40px 30px 30px;
}

.login-form {
    margin: 0;
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 8px;
    display: block;
    font-size: 14px;
}

.form-control {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: #fafafa;
    width: 100%;
    box-sizing: border-box;
}

.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.15);
    background-color: white;
    outline: none;
}

.password-input-container {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: #007bff;
}

.btn-login {
    width: 100%;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border: none;
    color: white;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    margin-top: 10px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.btn-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-login:hover::before {
    left: 100%;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.3);
}

.btn-login:active {
    transform: translateY(0);
}

.btn-login:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.login-footer {
    background-color: #f8f9fa;
    padding: 20px 30px;
    border-top: 1px solid var(--border-gray);
    text-align: center;
}

.security-note {
    color: var(--success-green);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 10px;
}

.alert {
    border-radius: 8px;
    border: none;
    margin-bottom: 20px;
    font-size: 14px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid var(--danger-red);
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-left: 4px solid var(--success-green);
}

/* Responsive Design */
@media (max-width: 576px) {
    body {
        padding: 10px;
    }
    
    .login-card {
        border-radius: 12px;
    }
    
    .login-header {
        padding: 30px 20px 25px;
    }
    
    .logo-icon {
        font-size: 40px;
    }
    
    .brand-title {
        font-size: 24px;
    }
    
    .app-title {
        font-size: 18px;
    }
    
    .login-form-container {
        padding: 30px 20px 25px;
    }
    
    .login-footer {
        padding: 15px 20px;
    }
}

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

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

/* Focus styles for accessibility */
.form-control:focus,
.btn-login:focus,
.password-toggle:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}
