/**
 * Modern Login Sayfası Stilleri
 * Miltekon Cam Projesi
 */

body { 
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Ubuntu, Cantarell, Arial, sans-serif;
  margin: 0;
  padding: 0;
}

/* Modern gradient arkaplan */
.auth-page { 
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

/* Arkaplan animasyonu */
.auth-page::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.15) 0%, transparent 50%),
              radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.1) 0%, transparent 50%);
  animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

/* Ana kart tasarımı */
.auth-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  z-index: 10;
}

.auth-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

/* Başlık stilleri */
.auth-card h1 {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.auth-card .text-muted {
  color: #6c757d !important;
  font-size: 1.1rem;
  font-weight: 400;
}

/* Form kontrolleri */
.form-label {
  font-weight: 600;
  color: #495057;
  margin-bottom: 0.75rem;
}

.form-control {
  border: 2px solid #e9ecef;
  border-radius: 12px;
  padding: 0.875rem 1rem;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.8);
}

.form-control:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
  background: rgba(255, 255, 255, 1);
  transform: translateY(-1px);
}

.form-control::placeholder {
  color: #adb5bd;
  font-weight: 400;
}

/* Input group stilleri */
.input-group-text {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: 2px solid #667eea;
  border-radius: 12px 0 0 12px;
  font-weight: 600;
  padding: 0.875rem 1rem;
}

.input-group .form-control {
  border-left: none;
  border-radius: 0 12px 12px 0;
}

.input-group .form-control:focus {
  border-left: 2px solid #667eea;
}

/* Şifre göster/gizle butonu */
#login-pw-wrap .btn {
  min-width: 86px;
  border: 2px solid #e9ecef;
  border-left: none;
  border-radius: 0 12px 12px 0;
  background: rgba(255, 255, 255, 0.9);
  color: #6c757d;
  font-weight: 500;
  transition: all 0.3s ease;
}

#login-pw-wrap .btn:hover {
  background: #667eea;
  border-color: #667eea;
  color: white;
}

#login-pw-wrap .form-control {
  border-radius: 12px 0 0 12px;
}

#login-pw-wrap .form-control:focus + .btn {
  border-color: #667eea;
}

/* Checkbox stilleri */
.form-check-input {
  border-radius: 6px;
  border: 2px solid #dee2e6;
  transition: all 0.3s ease;
}

.form-check-input:checked {
  background-color: #667eea;
  border-color: #667eea;
}

.form-check-input:focus {
  box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.form-check-label {
  font-weight: 500;
  color: #495057;
}

/* Ana giriş butonu */
.btn-secondary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 12px;
  padding: 1rem 2rem;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-secondary::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-secondary:hover::before {
  left: 100%;
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
  background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

.btn-secondary:active {
  transform: translateY(0);
}

/* Linkler */
.link-secondary {
  color: #667eea;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.link-secondary::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  transition: all 0.3s ease;
}

.link-secondary:hover {
  color: #764ba2;
  text-decoration: none;
}

.link-secondary:hover::after {
  width: 100%;
  left: 0;
}

/* Alert stilleri */
.alert {
  border: none;
  border-radius: 12px;
  font-weight: 500;
  backdrop-filter: blur(10px);
}

.alert-danger {
  background: rgba(220, 53, 69, 0.1);
  color: #dc3545;
  border-left: 4px solid #dc3545;
}

.alert-success {
  background: rgba(25, 135, 84, 0.1);
  color: #198754;
  border-left: 4px solid #198754;
}

.alert-warning {
  background: rgba(255, 193, 7, 0.1);
  color: #ffc107;
  border-left: 4px solid #ffc107;
}

/* Error mesajları */
.text-danger {
  color: #dc3545 !important;
  font-weight: 500;
}

/* Responsive tasarım */
@media (max-width: 576px) {
  .auth-card {
    margin: 1rem;
    border-radius: 20px;
  }
  
  .auth-card h1 {
    font-size: 1.75rem;
  }
  
  .form-control, .btn {
    font-size: 1rem;
  }
  
  .btn-secondary {
    padding: 0.875rem 1.5rem;
  }
}

/* Yükleme animasyonu */
.btn-secondary:disabled {
  background: #6c757d;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary:disabled::before {
  display: none;
}

/* Focus trap için */
.auth-card:focus-within {
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}
