/* Login CSS */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --accent: #f472b6;
  --bg-dark: #0f172a;
  --bg-card: #1e293b;
  --bg-input: #334155;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border: #475569;
  --success: #22c55e;
  --error: #ef4444;
  --glass: rgba(30, 41, 59, 0.8);
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-dark);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

/* Animated Background */
.bg-gradient {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: radial-gradient(
      ellipse 80% 50% at 50% -20%,
      rgba(99, 102, 241, 0.3),
      transparent
    ),
    radial-gradient(
      ellipse 60% 40% at 100% 100%,
      rgba(244, 114, 182, 0.2),
      transparent
    ),
    radial-gradient(
      ellipse 50% 50% at 0% 100%,
      rgba(99, 102, 241, 0.15),
      transparent
    );
  animation: gradientFloat 15s ease-in-out infinite;
}

@keyframes gradientFloat {
  0%,
  100% {
    transform: scale(1) rotate(0deg);
  }
  50% {
    transform: scale(1.1) rotate(3deg);
  }
}

/* Floating Orbs */
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
  animation: orbFloat 20s ease-in-out infinite;
  z-index: -1;
}

.orb-1 {
  width: 400px;
  height: 400px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  top: -100px;
  right: -100px;
  animation-delay: 0s;
}

.orb-2 {
  width: 300px;
  height: 300px;
  background: linear-gradient(
    135deg,
    var(--accent),
    var(--primary-light)
  );
  bottom: -50px;
  left: -50px;
  animation-delay: -5s;
}

.orb-3 {
  width: 200px;
  height: 200px;
  background: linear-gradient(
    135deg,
    var(--primary-light),
    var(--primary)
  );
  top: 50%;
  left: 30%;
  animation-delay: -10s;
}

@keyframes orbFloat {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(30px, -30px) scale(1.1);
  }
  50% {
    transform: translate(-20px, 20px) scale(0.95);
  }
  75% {
    transform: translate(20px, 40px) scale(1.05);
  }
}

/* Login Container */
.login-container {
  width: 100%;
  max-width: 420px;
  animation: fadeInUp 0.6s ease-out;
}

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

.login-card {
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 48px 40px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

/* Material Symbols */
.material-symbols-outlined {
  font-variation-settings:
    'FILL' 1,
    'wght' 400,
    'GRAD' 0,
    'opsz' 24;
}

/* Logo */
.logo {
  text-align: center;
  margin-bottom: 40px;
}

.logo-icon {
  width: 72px;
  height: 72px;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 32px;
  color: var(--primary-light);
  box-shadow: 0 0 40px rgba(99, 102, 241, 0.2);
  animation: logoPulse 3s ease-in-out infinite;
}

@keyframes logoPulse {
  0%,
  100% {
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.4);
  }
  50% {
    box-shadow: 0 10px 60px rgba(99, 102, 241, 0.6);
  }
}

.logo h1 {
  font-size: 28px;
  font-weight: 700;
  background: linear-gradient(
    135deg,
    var(--text-primary),
    var(--primary-light)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.logo p {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
}

/* Error Message */
.error-message {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  padding: 14px 16px;
  border-radius: 12px;
  margin-bottom: 24px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: shake 0.5s ease-in-out;
}

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

/* Form */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.input-wrapper {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 18px;
  pointer-events: none;
  transition: color 0.3s;
}

.form-group input[type="text"],
.form-group input[type="password"] {
  width: 100%;
  padding: 16px 16px 16px 48px;
  background: var(--bg-input);
  border: 2px solid transparent;
  border-radius: 14px;
  font-size: 15px;
  color: var(--text-primary);
  transition: all 0.3s;
  font-family: inherit;
}

.form-group input::placeholder {
  color: var(--text-muted);
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(51, 65, 85, 0.8);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}

.form-group input:focus + .input-icon,
.form-group input:not(:placeholder-shown) + .input-icon {
  color: var(--primary-light);
}

/* Checkbox - Beni Hatırla */
.remember-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.checkbox-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.checkbox-wrapper input[type="checkbox"] {
  display: none;
}

.custom-checkbox {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  background: var(--bg-input);
}

.custom-checkbox svg {
  width: 12px;
  height: 12px;
  stroke: white;
  stroke-width: 3;
  opacity: 0;
  transform: scale(0);
  transition: all 0.2s;
}

.checkbox-wrapper input:checked + .custom-checkbox {
  background: var(--primary);
  border-color: var(--primary);
}

.checkbox-wrapper input:checked + .custom-checkbox svg {
  opacity: 1;
  transform: scale(1);
}

.checkbox-wrapper:hover .custom-checkbox {
  border-color: var(--primary-light);
}

.checkbox-label {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  user-select: none;
}

/* Submit Button */
.btn-login {
  width: 100%;
  padding: 16px 24px;
  background: linear-gradient(
    135deg,
    var(--primary),
    var(--primary-dark)
  );
  color: white;
  border: none;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
  font-family: inherit;
}

.btn-login::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  opacity: 0;
  transition: opacity 0.3s;
}

.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}

.btn-login:hover::before {
  opacity: 1;
}

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

.btn-login span {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* Footer */
.login-footer {
  text-align: center;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.login-footer p {
  color: var(--text-muted);
  font-size: 13px;
}

.login-footer a {
  color: var(--primary-light);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.login-footer a:hover {
  color: var(--accent);
}

/* Responsive */
@media (max-width: 480px) {
  .login-card {
    padding: 36px 24px;
    border-radius: 20px;
  }

  .logo-icon {
    width: 60px;
    height: 60px;
    font-size: 28px;
  }

  .logo h1 {
    font-size: 24px;
  }
}
