/* assets/css/login-modern.css - Mobil İyileştirmeler Eklendi */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap");

:root {
  --bg-gradient: linear-gradient(135deg, #1a535c 0%, #0b2a30 100%);
  --card-bg: rgba(16, 54, 58, 0.6);
  --border-color: rgba(255, 255, 255, 0.15);
  --primary-color: #4ecdc4;
  --primary-hover: #5fe3d8;
  --accent-color: #ff9f1c;
  --text-color: #f7fff7;
  --text-muted: #ccc;
  --shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

body {
  font-family: "Poppins", sans-serif;
  background: var(--bg-gradient);
  color: var(--text-color);
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
  box-sizing: border-box;
}

.login-container {
  width: 100%;
  max-width: 450px;
  text-align: center;
}

.login-header {
  margin-bottom: 30px;
}
.login-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 0 10px 0;
  color: var(--text-color);
}
.login-header h1 span {
  color: var(--primary-color);
}
.login-header p {
  color: var(--text-muted);
  font-size: 1rem;
}

.form-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  padding: 30px 35px;
}

.form-card h2 {
  font-size: 1.8rem;
  margin: 0 0 25px 0;
  font-weight: 600;
}

.input-group {
  position: relative;
  margin-bottom: 20px;
}
.input-group i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}
.input-group input {
  width: 100%;
  padding: 12px 15px 12px 45px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
  color: var(--text-color);
  font-size: 1rem;
  box-sizing: border-box;
  transition: all 0.2s;
}
.input-group input::placeholder {
  color: #aaa;
}
.input-group input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(78, 205, 196, 0.25);
}

button[type="submit"] {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 8px;
  background-color: var(--primary-color);
  color: #0b2a30;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.3s;
  margin-top: 10px;
}
button[type="submit"]:hover:not(:disabled) {
  /* Hover :disabled değilse çalışsın */
  background-color: var(--primary-hover);
}

.form-switcher {
  text-align: center;
  margin-top: 25px;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.form-switcher a {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 600;
}

.message {
  padding: 12px;
  border-radius: 8px;
  color: white;
  margin-bottom: 20px;
  text-align: center;
  font-size: 0.95rem;
}
.message.error {
  background-color: rgba(231, 76, 60, 0.5);
  border: 1px solid #e74c60;
}
.message.success {
  background-color: rgba(46, 204, 113, 0.5);
  border: 1px solid #2ecc71;
}

/* --- YASAKLI KELİME UYARISI ŞIK TASARIM --- */
.message.banned-word {
  background: linear-gradient(
    135deg,
    rgba(231, 76, 60, 0.3) 0%,
    rgba(192, 57, 43, 0.4) 100%
  );
  border: 2px solid rgba(231, 76, 60, 0.8);
  border-radius: 12px;
  padding: 20px;
  position: relative;
  overflow: hidden;
  animation: shakeWarning 0.5s ease-in-out;
  box-shadow: 0 4px 20px rgba(231, 76, 60, 0.3);
}

.message.banned-word::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #e74c3c, #ff6b6b, #e74c3c);
  background-size: 200% 100%;
  animation: gradientFlow 2s linear infinite;
}

.message.banned-word .warning-icon {
  font-size: 2rem;
  margin-bottom: 10px;
  display: block;
  color: #ff6b6b;
  text-shadow: 0 0 20px rgba(255, 107, 107, 0.5);
  animation: pulseIcon 1.5s ease-in-out infinite;
}

.message.banned-word .warning-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.message.banned-word .warning-text {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.5;
}

.message.banned-word .warning-tip {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.message.banned-word .warning-tip i {
  color: #ffd93d;
}

@keyframes shakeWarning {
  0%,
  100% {
    transform: translateX(0);
  }
  10%,
  30%,
  50%,
  70%,
  90% {
    transform: translateX(-5px);
  }
  20%,
  40%,
  60%,
  80% {
    transform: translateX(5px);
  }
}

@keyframes gradientFlow {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}

@keyframes pulseIcon {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

/* --- TELEFON NUMARASI UYARISI --- */
.message.phone-number {
  background: linear-gradient(135deg, rgba(155, 89, 182, 0.3) 0%, rgba(142, 68, 173, 0.4) 100%);
  border: 2px solid rgba(155, 89, 182, 0.8);
  border-radius: 12px;
  padding: 20px;
  position: relative;
  overflow: hidden;
  animation: shakeWarning 0.5s ease-in-out;
  box-shadow: 0 4px 20px rgba(155, 89, 182, 0.3);
}

.message.phone-number::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #9b59b6, #e056fd, #9b59b6);
  background-size: 200% 100%;
  animation: gradientFlow 2s linear infinite;
}

.message.phone-number .warning-icon {
  font-size: 2rem;
  margin-bottom: 10px;
  display: block;
  color: #e056fd;
  text-shadow: 0 0 20px rgba(224, 86, 253, 0.5);
  animation: pulseIcon 1.5s ease-in-out infinite;
}

.message.phone-number .warning-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.message.phone-number .warning-text {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.5;
}

.message.phone-number .warning-tip {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.message.phone-number .warning-tip i {
  color: #ffd93d;
}

/* --- KULLANICI ADI UZUNLUK UYARISI --- */
.message.username-length {
  background: linear-gradient(135deg, rgba(243, 156, 18, 0.3) 0%, rgba(230, 126, 34, 0.4) 100%);
  border: 2px solid rgba(243, 156, 18, 0.8);
  border-radius: 12px;
  padding: 20px;
  position: relative;
  overflow: hidden;
  animation: shakeWarning 0.5s ease-in-out;
  box-shadow: 0 4px 20px rgba(243, 156, 18, 0.3);
}

.message.username-length::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #f39c12, #f1c40f, #f39c12);
  background-size: 200% 100%;
  animation: gradientFlow 2s linear infinite;
}

.message.username-length .warning-icon {
  font-size: 2rem;
  margin-bottom: 10px;
  display: block;
  color: #f1c40f;
  text-shadow: 0 0 20px rgba(241, 196, 15, 0.5);
  animation: pulseIcon 1.5s ease-in-out infinite;
}

.message.username-length .warning-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.message.username-length .warning-text {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.5;
}

.message.username-length .warning-tip {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.message.username-length .warning-tip i {
  color: #ffd93d;
}

.login-footer {
  width: 100%;
  max-width: 450px;
  text-align: center;
  padding-top: 30px;
}
.login-footer a {
  color: var(--text-muted);
  text-decoration: none;
  margin: 0 10px;
  font-size: 0.85rem;
  transition: color 0.3s;
}
.login-footer a:hover {
  color: white;
}

/* --- Kilitlenme Mesajı Stili --- */
.message.lockout {
  background-color: rgba(243, 156, 18, 0.5);
  border: 1px solid #f39c12;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.message.lockout i {
  font-size: 1.1rem;
}

/* --- Kilitliyken Butonu Pasifleştir --- */
button[type="submit"]:disabled {
  background-color: #6c757d;
  cursor: not-allowed;
  opacity: 0.7;
}
button[type="submit"]:disabled:hover {
  background-color: #5a6268; /* Hover rengini de değiştir */
}

/* --- YASAKLAMA MESAJ KARTI STİLİ --- */
.ban-message-card {
  background-color: rgba(231, 76, 60, 0.1);
  border: 1px solid rgba(231, 76, 60, 0.4);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  color: #f7fff7;
}

.ban-message-card .ban-icon {
  font-size: 2.5rem;
  color: #e74c3c;
  margin-bottom: 15px;
}

.ban-message-card h3 {
  margin: 0 0 10px 0;
  font-size: 1.4rem;
  font-weight: 700;
}

.ban-message-card p {
  margin: 10px 0;
  line-height: 1.6;
  font-size: 0.95rem;
  color: #ccc;
}

.ban-message-card .ban-reason strong {
  color: #f7fff7;
}

.ban-message-card .ban-contact {
  margin-top: 20px;
  font-size: 0.9rem;
}

.ban-message-card a {
  color: var(--accent-color);
  font-weight: 600;
  text-decoration: none;
}
.ban-message-card a:hover {
  text-decoration: underline;
}

/* Yasak kartı gösterilirken, normal hata mesajını gizle (gerekirse) */
.ban-message-card + #login-form .message {
  display: none;
}

/* --- MOBİL UYUMLULUK --- */
@media (max-width: 480px) {
  body {
    padding: 10px;
  }
  .login-header h1 {
    font-size: 2rem; /* Başlığı biraz küçült */
  }
  .login-header p {
    font-size: 0.9rem;
  }
  .form-card {
    padding: 25px 20px; /* İç boşlukları azalt */
  }
  .form-card h2 {
    font-size: 1.5rem; /* Form başlığını küçült */
  }
  .input-group input {
    padding: 10px 15px 10px 40px; /* Input iç boşluklarını azalt */
    font-size: 0.95rem;
  }
  .input-group i {
    left: 12px; /* İkonu sola yaklaştır */
  }
  button[type="submit"] {
    padding: 12px; /* Buton iç boşluğunu azalt */
    font-size: 1rem;
  }
  .form-switcher {
    font-size: 0.85rem;
  }
  .login-footer a {
    font-size: 0.8rem;
    margin: 0 5px; /* Footer link arası boşluğu azalt */
  }
  .ban-message-card {
    padding: 20px;
  }
  .ban-message-card h3 {
    font-size: 1.2rem;
  }
  .ban-message-card p {
    font-size: 0.9rem;
  }
}
