/* ============ LOGIN PAGE ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Outfit', sans-serif;
  min-height: 100vh;
  display: flex;
  background: #0c1222;
  overflow-x: hidden;
  overflow-y: auto;
}

/* LEFT PANEL — Branding */
.left-panel {
  flex: 1;
  background: linear-gradient(160deg, #0f172a 0%, #1e3a5f 40%, #1d4ed8 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 40px;
  position: relative;
  overflow: hidden;
}
.left-panel::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: rgba(59,130,246,0.15);
  filter: blur(80px);
}
.left-panel::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -60px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(99,102,241,0.12);
  filter: blur(60px);
}
.left-logo {
  width: 140px; height: 140px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.left-title {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  text-align: center;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
  position: relative;
  z-index: 1;
}
.left-subtitle {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  text-align: center;
  position: relative;
  z-index: 1;
  margin-bottom: 40px;
}
.left-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  z-index: 1;
}
.left-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.06);
}
.left-feature-icon {
  font-size: 20px;
  flex-shrink: 0;
}
.left-feature-text {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
}

/* RIGHT PANEL — Login Form */
.right-panel {
  width: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  background: #fff;
}
.login-form {
  width: 100%;
  max-width: 360px;
}
.login-form h1 {
  font-size: 26px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.5px;
  margin-bottom: 4px;
}
.login-form .sub {
  font-size: 14px;
  color: #94a3b8;
  margin-bottom: 32px;
}
.error-box {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.form-group {
  margin-bottom: 18px;
}
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
}
.form-group input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  color: #1e293b;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #f8fafc;
}
.form-group input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
  background: #fff;
}
.form-group input::placeholder { color: #cbd5e1; }
.btn-login {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, #1e3a5f, #1d4ed8);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s;
  margin-top: 4px;
}
.btn-login:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(29,78,216,0.35);
}
.btn-login:active { transform: scale(0.98); }
.form-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 12px;
  color: #94a3b8;
}
.form-footer a {
  color: #3b82f6;
  text-decoration: none;
  font-weight: 600;
}

@media (max-width: 900px) {
  body { flex-direction: column; }
  .left-panel { padding: 40px 24px; min-height: auto; }
  .left-logo { width: 80px; height: 80px; margin-bottom: 16px; }
  .left-title { font-size: 20px; }
  .left-features { display: none; }
  .right-panel { width: 100%; flex: 1; padding: 32px 24px; }
}
.success-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
