/* Modern Login Ekranı - Tam Mobil Uyumlu */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

/* Animated Background Circles */
body::before,
body::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  animation: float 20s infinite ease-in-out;
}

body::before {
  width: 400px;
  height: 400px;
  top: -100px;
  left: -100px;
  animation-delay: 0s;
}

body::after {
  width: 300px;
  height: 300px;
  bottom: -80px;
  right: -80px;
  animation-delay: 3s;
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(30px, -30px) scale(1.1);
  }
  66% {
    transform: translate(-20px, 20px) scale(0.9);
  }
}

/* Main Card Container */
.card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  padding: 40px;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  width: 100%;
  max-width: 420px;
  position: relative;
  z-index: 1;
  animation: slideUp 0.6s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Logo/Icon Area */
.card::before {
  content: '🎓';
  font-size: 48px;
  display: block;
  text-align: center;
  margin-bottom: 20px;
}

/* Header */
.card h3 {
  font-size: 28px;
  font-weight: 700;
  color: #1a202c;
  text-align: center;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.card h3::after {
  content: 'Özel Eğitim Platformu';
  display: block;
  font-size: 14px;
  color: #6b7280;
  font-weight: 400;
  margin-top: 8px;
  background: none;
  -webkit-text-fill-color: #6b7280;
}

/* Error Message */
.error-message {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  color: #b91c1c;
  padding: 12px 16px;
  border-radius: 12px;
  margin: 16px 0;
  font-size: 14px;
  font-weight: 500;
  border-left: 4px solid #dc2626;
  animation: shake 0.5s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-10px); }
  75% { transform: translateX(10px); }
}

/* Form Styling */
form {
  margin-top: 24px;
}

label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
  margin-top: 16px;
}

label:first-of-type {
  margin-top: 0;
}

/* Input Fields */
input[type="email"],
input[type="password"] {
  width: 100%;
  padding: 14px 16px;
  margin: 0 0 4px 0;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-size: 15px;
  transition: all 0.3s ease;
  background: #f9fafb;
}

input[type="email"]:focus,
input[type="password"]:focus {
  outline: none;
  border-color: #667eea;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
  transform: translateY(-1px);
}

input[type="email"]::placeholder,
input[type="password"]::placeholder {
  color: #9ca3af;
}

/* reCAPTCHA Container */
.g-recaptcha {
  margin: 20px 0;
  display: flex;
  justify-content: center;
  transform: scale(0.95);
  transform-origin: center;
}

/* Submit Button */
button[type="submit"] {
  width: 100%;
  padding: 14px;
  margin-top: 16px;
  border: none;
  background: linear-gradient(135deg, #0ea5a4 0%, #0d9488 100%);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(14, 165, 164, 0.3);
  position: relative;
  overflow: hidden;
}

button[type="submit"]::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(14, 165, 164, 0.4);
}

button[type="submit"]:hover::before {
  width: 300px;
  height: 300px;
}

button[type="submit"]:active {
  transform: translateY(0);
}

/* Hidden CSRF Token */
input[type="hidden"] {
  display: none;
}

/* Footer Link (isteğe bağlı) */
.footer-link {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  color: #6b7280;
}

.footer-link a {
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.footer-link a:hover {
  color: #764ba2;
  text-decoration: underline;
}

/* Tablet Responsive (768px - 1024px) */
@media (max-width: 1024px) and (min-width: 768px) {
  .card {
    max-width: 480px;
    padding: 48px;
  }
}

/* Mobile Responsive (max 767px) */
@media (max-width: 767px) {
  body {
    padding: 16px;
  }

  .card {
    padding: 32px 24px;
    border-radius: 20px;
  }

  .card::before {
    font-size: 40px;
    margin-bottom: 16px;
  }

  .card h3 {
    font-size: 24px;
  }

  .card h3::after {
    font-size: 13px;
  }

  input[type="email"],
  input[type="password"] {
    padding: 12px 14px;
    font-size: 16px; /* Prevents zoom on iOS */
  }

  button[type="submit"] {
    padding: 13px;
    font-size: 15px;
  }

  .g-recaptcha {
    transform: scale(0.88);
  }

  body::before {
    width: 250px;
    height: 250px;
  }

  body::after {
    width: 200px;
    height: 200px;
  }
}

/* Extra Small Mobile (max 374px) */
@media (max-width: 374px) {
  .card {
    padding: 28px 20px;
  }

  .card h3 {
    font-size: 22px;
  }

  .g-recaptcha {
    transform: scale(0.82);
  }
}

/* Loading State (isteğe bağlı) */
button[type="submit"]:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

button[type="submit"]:disabled:hover {
  transform: none;
  box-shadow: 0 4px 15px rgba(14, 165, 164, 0.3);
}