/**
 * Login Sayfası CSS - Profesyonel & Minimalist
 * Toodai Okul Otomasyon Sistemi
 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 119, 198, 0.2) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.login-container {
    width: 100%;
    max-width: 380px;
    position: relative;
    z-index: 1;
}

.login-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        0 2px 8px rgba(0, 0, 0, 0.05);
    padding: 32px 28px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: slideUp 0.4s ease-out;
}

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

.login-header {
    text-align: center;
    margin-bottom: 28px;
}

.login-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.login-icon i {
    font-size: 24px;
    color: white;
}

.login-header h1 {
    color: #1e293b;
    font-weight: 700;
    font-size: 24px;
    margin-bottom: 4px;
    letter-spacing: -0.5px;
}

.login-subtitle {
    color: #64748b;
    font-size: 13px;
    font-weight: 400;
    margin: 0;
}

.login-form {
    margin-top: 24px;
}

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

.form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #334155;
    font-weight: 500;
    font-size: 13px;
    margin-bottom: 8px;
}

.form-label i {
    color: #667eea;
    font-size: 14px;
    width: 16px;
    text-align: center;
}

.form-control {
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 11px 14px;
    font-size: 14px;
    color: #1e293b;
    background: #ffffff;
    transition: all 0.2s ease;
    font-family: inherit;
}

.form-control::placeholder {
    color: #94a3b8;
    font-size: 13px;
}

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

.form-control:hover {
    border-color: #cbd5e1;
}

.btn-primary {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    padding: 12px 20px;
    font-weight: 600;
    font-size: 14px;
    border-radius: 10px;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    font-family: inherit;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

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

.btn-primary i {
    font-size: 12px;
    transition: transform 0.2s ease;
}

.btn-primary:hover i {
    transform: translateX(2px);
}

.alert {
    border-radius: 10px;
    border: none;
    margin-bottom: 20px;
    padding: 12px 14px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fee2e2;
    color: #991b1b;
    animation: shake 0.3s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}

.alert i {
    font-size: 14px;
}

.login-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
}

.login-footer small {
    color: #94a3b8;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.login-footer small i {
    font-size: 11px;
}

.login-footer strong {
    color: #64748b;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 480px) {
    .login-card {
        padding: 28px 24px;
    }
    
    .login-header h1 {
        font-size: 22px;
    }
    
    .login-icon {
        width: 48px;
        height: 48px;
    }
    
    .login-icon i {
        font-size: 20px;
    }
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
    .login-card {
        background: rgba(30, 41, 59, 0.95);
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    .login-header h1 {
        color: #f1f5f9;
    }
    
    .login-subtitle {
        color: #94a3b8;
    }
    
    .form-label {
        color: #cbd5e1;
    }
    
    .form-control {
        background: rgba(15, 23, 42, 0.5);
        border-color: #334155;
        color: #f1f5f9;
    }
    
    .form-control:focus {
        background: rgba(15, 23, 42, 0.7);
        border-color: #667eea;
    }
    
    .login-footer {
        border-top-color: #334155;
    }
    
    .login-footer small {
        color: #64748b;
    }
}
