/* Login Sayfası Stilleri */

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

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.login-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 40px;
    width: 100%;
    max-width: 450px;
    backdrop-filter: blur(10px);
    margin: auto;
}

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

.login-header h2 {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 10px;
}

.login-header p {
    color: #7f8c8d;
    margin: 0;
}

/* Form Stilleri */
.form-control {
    border-radius: 10px;
    padding: 12px 20px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

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

.form-label {
    color: #2c3e50;
    font-weight: 500;
    margin-bottom: 8px;
}

.input-group {
    position: relative;
}

.input-group-text {
    background: transparent;
    border: 2px solid #e0e0e0;
    border-right: none;
    border-radius: 10px 0 0 10px;
}

.form-control.with-icon {
    border-left: none;
    border-radius: 0 10px 10px 0;
}

/* Şifre Göster/Gizle Butonu */
.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 0 10px;
    z-index: 10;
}

.password-toggle:hover {
    color: #333;
}

/* Giriş Butonu */
.btn-login {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 10px;
    padding: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

/* Alert Stilleri */
.alert {
    border-radius: 10px;
    border: none;
}

/* Sınıf Butonları */
.sinif-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.sinif-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-sizing: border-box;
    width: auto;
    min-width: 120px;
}

.sinif-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
    color: white;
}

.sinif-btn.active {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.sinif-btn i {
    margin-right: 5px;
}

/* Geri Dön Butonu */
.back-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5253 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-top: 20px;
    border: none;
    cursor: pointer;
    box-sizing: border-box;
    width: 100%;
}

.back-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(238, 82, 83, 0.3);
    color: white;
}

.back-btn i {
    margin-right: 8px;
}

/* Responsive */
@media (max-width: 576px) {
    .login-container {
        padding: 30px 20px;
    }

    .sinif-container {
        flex-direction: row;
        gap: 8px;
    }

    .sinif-btn {
        flex: 1;
        min-width: 0;
        font-size: 13px;
        padding: 6px 12px;
    }
}

/* Animasyonlar */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-container {
    animation: fadeIn 0.5s ease-out;
}

.alert {
    animation: fadeIn 0.3s ease-out;
}
