/* Admin Forgot Password Sayfası Stilleri */

/* Reset ve temel stiller */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    color: #2d3748;
    position: relative;
    overflow: hidden;
}

/* Animasyonlu arka plan */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.3) 0%, transparent 50%);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* Ana container */
.forgot-password-container {
    position: relative;
    z-index: 10;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 100%;
    max-width: 420px;
    transform: translateY(0);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.forgot-password-container:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 35px 60px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.15);
}

/* Logo bölümü */
.logo {
    text-align: center;
    margin-bottom: 2.5rem;
}

.logo h2 {
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    font-size: 2rem;
    margin: 0;
}

.logo p {
    color: #718096;
    font-size: 0.95rem;
    margin-top: 0.5rem;
    font-weight: 400;
}

/* Alert stilleri */
.alert {
    border-radius: 12px;
    border: none;
    padding: 1rem 1.25rem;
    margin-bottom: 2rem;
    font-weight: 500;
    text-align: center;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.alert-success {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    color: #16a34a;
    border: 1px solid #bbf7d0;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.15);
}

.alert-danger {
    background: linear-gradient(135deg, #fed7d7, #feb2b2);
    color: #dc2626;
    border: 1px solid #feb2b2;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.15);
}

/* Form stilleri */
.form-group {
    margin-bottom: 1.75rem;
    position: relative;
}

.form-group::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.form-group:focus-within::after {
    width: 100%;
}

.form-label {
    display: block;
    color: #4a5568;
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.form-control {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    background: #ffffff;
    color: #2d3748;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 
        0 0 0 3px rgba(102, 126, 234, 0.1),
        0 4px 12px rgba(102, 126, 234, 0.15);
    transform: translateY(-1px);
}

.form-control::placeholder {
    color: #a0aec0;
}

/* Buton stilleri */
.btn-primary {
    width: 100%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 1.25rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary::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-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
}

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

/* Loading animasyonu */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Geri dönüş linki */
.back-link {
    display: block;
    text-align: center;
    margin-top: 1.5rem;
    color: #667eea;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    padding: 0.5rem;
    border-radius: 8px;
}

.back-link:hover {
    color: #764ba2;
    background: rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.back-link:active {
    transform: translateY(0);
}

/* Responsive tasarım */
@media (max-width: 480px) {
    .forgot-password-container {
        padding: 2rem 1.5rem;
        border-radius: 20px;
        margin: 0 15px;
    }
    
    .logo h2 {
        font-size: 1.75rem;
    }
    
    .form-control {
        padding: 0.875rem 1rem;
    }
    
    .btn-primary {
        padding: 1.125rem;
        font-size: 1rem;
    }
}

/* Karanlık tema desteği */
body.dark-theme {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    color: #e2e8f0;
}

body.dark-theme .forgot-password-container {
    background: rgba(26, 32, 44, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.05);
}

body.dark-theme .forgot-password-container:hover {
    box-shadow: 
        0 35px 60px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

body.dark-theme .logo h2 {
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.dark-theme .logo p {
    color: #a0aec0;
}

body.dark-theme .form-label {
    color: #e2e8f0;
}

body.dark-theme .form-control {
    background: #2d3748;
    border-color: #4a5568;
    color: #e2e8f0;
}

body.dark-theme .form-control:focus {
    border-color: #667eea;
    background: #2d3748;
    color: #e2e8f0;
    box-shadow: 
        0 0 0 3px rgba(102, 126, 234, 0.1),
        0 4px 12px rgba(102, 126, 234, 0.15);
}

body.dark-theme .form-control::placeholder {
    color: #718096;
}

body.dark-theme .back-link {
    color: #667eea;
}

body.dark-theme .back-link:hover {
    color: #764ba2;
    background: rgba(102, 126, 234, 0.1);
}

body.dark-theme .alert-success {
    background: linear-gradient(135deg, #064e3b, #065f46);
    color: #10b981;
    border: 1px solid #065f46;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

body.dark-theme .alert-danger {
    background: linear-gradient(135deg, #7f1d1d, #991b1b);
    color: #f87171;
    border: 1px solid #991b1b;
    box-shadow: 0 4px 12px rgba(248, 113, 113, 0.15);
}

/* Animasyon efektleri */
.fade-in {
    animation: fadeIn 0.6s ease-out;
}

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

.slide-up {
    animation: slideUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Focus efektleri */
.form-group.focused .form-label {
    color: #667eea;
}

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

/* Hover efektleri */
.form-control:hover {
    border-color: #cbd5e0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5a67d8, #6b46c1);
}

/* Active durumları */
.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.form-control:active {
    transform: translateY(0);
}

/* Disabled durumları */
.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-primary:disabled:hover {
    transform: none;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

/* Form validasyon stilleri */
.form-control.is-invalid {
    border-color: #e53e3e;
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
}

.form-control.is-valid {
    border-color: #38a169;
    box-shadow: 0 0 0 3px rgba(56, 161, 105, 0.1);
}

.invalid-feedback {
    color: #e53e3e;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: block;
}

.valid-feedback {
    color: #38a169;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: block;
}

/* Özel animasyonlar */
.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.bounce {
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .forgot-password-container {
        border: 2px solid #000;
        background: #fff;
    }
    
    .form-control {
        border: 2px solid #000;
    }
    
    .btn-primary {
        background: #000;
        color: #fff;
    }
}

/* Print stilleri */
@media print {
    body {
        background: white;
    }
    
    .forgot-password-container {
        box-shadow: none;
        border: 1px solid #000;
        background: white;
    }
    
    .btn-primary {
        background: #000;
        color: white;
    }
}
