/**
 * Authentication Styles
 * ASEL Sanat Akademisi - Öğrenci Yönetim Sistemi
 */

/* Ana renk paleti */
:root {
    --primary: #2c3e50;
    --secondary: #3498db;
    --accent: #e74c3c;
    --success: #27ae60;
    --warning: #f39c12;
    --danger: #e74c3c;
    --info: #17a2b8;
    --light: #f8f9fa;
    --dark: #343a40;
    --white: #ffffff;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
    
    /* Gradient'ler */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    --gradient-welcome: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
}

/* Genel stil */
* {
    box-sizing: border-box;
}

body.auth-body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    padding: 0;
    background: var(--login-background, linear-gradient(135deg, #667eea 0%, #764ba2 100%)) center/cover no-repeat fixed;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Auth Container */
.auth-container {
    min-height: 100vh;
    position: relative;
}

/* Sol Panel - Hoş Geldin */
/* Sol panel ve vitrin içerikleri kaldırıldığı için bu bölüm kullanılmıyor */
.auth-welcome { display: none; }

.auth-welcome::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="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="20" cy="60" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="80" cy="40" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    z-index: 1;
}

.welcome-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 400px;
}

.welcome-logo {
    margin-bottom: 3rem;
}

.welcome-logo h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.welcome-features {
    text-align: left;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 0.75rem;
    background: rgba(255,255,255,0.1);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(255,255,255,0.15);
    transform: translateX(5px);
}

/* Sağ Panel - Form */
.auth-form-panel {
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
}

.auth-form-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 0%, rgba(52, 152, 219, 0.02) 50%, transparent 100%);
    z-index: 1;
}

.auth-form-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 450px;
}

.auth-form {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    border: 1px solid var(--gray-200);
}

/* Form Elemanları */
.form-label {
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-control {
    border: 2px solid var(--gray-300);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--white);
}

.form-control:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
    outline: none;
}

.input-group-text {
    background: var(--gray-100);
    border: 2px solid var(--gray-300);
    border-right: none;
    border-radius: 8px 0 0 8px;
    padding: 0.75rem 1rem;
}

.input-group .form-control {
    border-left: none;
    border-radius: 0 8px 8px 0;
}

.input-group .form-control:focus {
    border-left: 2px solid var(--secondary);
}

.input-group .form-control:focus + .btn {
    border-color: var(--secondary);
}

/* Butonlar */
.btn {
    border-radius: 8px;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-secondary);
    border: none;
    color: var(--white);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

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

.btn-outline-secondary {
    border: 2px solid var(--gray-300);
    color: var(--gray-600);
    background: transparent;
}

.btn-outline-secondary:hover {
    background: var(--gray-100);
    border-color: var(--gray-400);
}

/* Demo Butonları */
.demo-accounts {
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
}

.demo-account-grid {
    display: grid;
    gap: 0.75rem;
}

.demo-account-card {
    width: 100%;
    border: 1px solid var(--gray-200);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.88);
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.9rem 1rem;
    text-align: left;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.demo-account-card:hover,
.demo-account-card.is-active {
    transform: translateY(-1px);
    border-color: rgba(52, 152, 219, 0.45);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.demo-account-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.demo-account-copy {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.demo-account-copy strong {
    color: var(--gray-800);
    font-size: 0.95rem;
}

.demo-account-copy small {
    color: var(--gray-600);
}

.demo-login {
    font-size: 0.85rem;
    padding: 0.5rem 0.75rem;
    transition: all 0.3s ease;
}

.btn-outline-info {
    border-color: var(--info);
    color: var(--info);
}

.btn-outline-info:hover {
    background: var(--info);
    color: var(--white);
    transform: translateY(-1px);
}

.btn-outline-success {
    border-color: var(--success);
    color: var(--success);
}

.btn-outline-success:hover {
    background: var(--success);
    color: var(--white);
    transform: translateY(-1px);
}

/* Alert'ler */
.alert {
    border: none;
    border-radius: 16px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid;
    display: flex;
    align-items: center;
}

.alert-success {
    background: rgba(39, 174, 96, 0.1);
    color: var(--success);
    border-left-color: var(--success);
}

.alert-danger {
    background: rgba(231, 76, 60, 0.1);
    color: var(--danger);
    border-left-color: var(--danger);
}

.alert-info {
    background: rgba(23, 162, 184, 0.1);
    color: var(--info);
    border-left-color: var(--info);
}

.alert-warning {
    background: rgba(243, 156, 18, 0.1);
    color: var(--warning);
    border-left-color: var(--warning);
}

/* Checkbox */
.form-check-input {
    border: 2px solid var(--gray-300);
    border-radius: 4px;
    width: 1.2em;
    height: 1.2em;
}

.form-check-input:checked {
    background-color: var(--secondary);
    border-color: var(--secondary);
}

.form-check-label {
    color: var(--gray-600);
    font-size: 0.9rem;
}

/* Loading Spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Link Stilleri */
a {
    color: var(--secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary);
}

/* Responsive Tasarım */
@media (max-width: 991.98px) {
    .auth-welcome {
        display: none;
    }
    
    .auth-form-panel {
        min-height: 100vh;
    }
    
    .auth-form {
        padding: 2rem;
        margin: 1rem;
        box-shadow: 0 5px 25px rgba(0,0,0,0.15);
    }
    
    /* Background responsive ayarları */
    body.auth-body {
        background-size: cover;
        background-position: center;
        background-attachment: scroll;
    }
}

@media (max-width: 575.98px) {
    .auth-form {
        padding: 1.5rem;
        margin: 0.5rem;
    }

    .demo-account-card {
        padding: 0.85rem 0.9rem;
    }
    
    .welcome-logo h1 {
        font-size: 2rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.25rem;
        font-size: 1rem;
    }
    
    /* Mobilde background daha iyi görünüm */
    body.auth-body {
        background-size: cover;
        background-position: center;
        background-attachment: scroll;
    }
}

@media (max-width: 575.98px) {
    .auth-form {
        padding: 1.5rem;
        margin: 0.5rem;
    }
    
    .welcome-logo h1 {
        font-size: 2rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.25rem;
        font-size: 1rem;
    }
}

/* Animasyonlar */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.auth-form {
    animation: fadeInUp 0.6s ease-out;
}

.welcome-content {
    animation: fadeInLeft 0.8s ease-out;
}

.feature-item {
    animation: fadeInLeft 0.6s ease-out;
}

.feature-item:nth-child(1) { animation-delay: 0.1s; }
.feature-item:nth-child(2) { animation-delay: 0.2s; }
.feature-item:nth-child(3) { animation-delay: 0.3s; }
.feature-item:nth-child(4) { animation-delay: 0.4s; }
.feature-item:nth-child(5) { animation-delay: 0.5s; }

/* Focus Stilleri */
.form-control:focus,
.btn:focus {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

/* Disabled Durumu */
.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

/* Özel Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-400);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-500);
}