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

body {
  font-family: 'Be Vietnam Pro', 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, #0d0d1a 0%, #111827 50%, #0a1628 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #fff;
}

/* === Orb background === */
.bg-orbs { position: fixed; inset: 0; pointer-events: none; z-index: 0; }

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.25;
  animation: float 10s ease-in-out infinite;
}

.orb-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #ffd700, #ff6b00);
  top: -150px; left: -150px;
  animation-delay: 0s;
}

.orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #5856d6, #007aff);
  bottom: -100px; right: -100px;
  animation-delay: -4s;
}

.orb-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, #ff2d55, #af52de);
  top: 50%; left: 60%;
  animation-delay: -7s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(30px, -30px) scale(1.05); }
  66%       { transform: translate(-20px, 20px) scale(0.97); }
}

/* === Card === */
.login-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  padding: 20px;
}

.login-card {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 24px;
  padding: 44px 40px;
  box-shadow:
    0 30px 60px rgba(0,0,0,0.4),
    0 0 0 1px rgba(255,255,255,0.05) inset;
  animation: cardIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.login-logo {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 12px;
  filter: drop-shadow(0 0 20px rgba(255,215,0,0.6));
}

.login-title {
  font-size: 1.5rem;
  font-weight: 800;
  text-align: center;
  background: linear-gradient(135deg, #ffd700, #ffaa00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
}

.login-sub {
  text-align: center;
  color: rgba(255,255,255,0.4);
  font-size: 0.9rem;
  margin-bottom: 32px;
}

/* === Fields === */
.field-group { margin-bottom: 18px; }

.field-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255,255,255,0.65);
  margin-bottom: 7px;
}

.field-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.field-icon {
  position: absolute;
  left: 14px;
  font-size: 1rem;
  opacity: 0.55;
  pointer-events: none;
}

.field-input {
  width: 100%;
  padding: 13px 14px 13px 42px;
  background: rgba(255,255,255,0.07);
  border: 1.5px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  color: #fff;
  font-family: 'Be Vietnam Pro', 'Segoe UI', sans-serif;
  font-size: 0.95rem;
  transition: border-color 0.2s, background 0.2s;
  outline: none;
}

.field-input::placeholder { color: rgba(255,255,255,0.25); }

.field-input:focus {
  border-color: #ffd700;
  background: rgba(255,255,255,0.1);
}

/* Password toggle */
.toggle-pw {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.4);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  transition: color 0.2s;
}

.toggle-pw:hover { color: rgba(255,255,255,0.8); }

/* === Remember me === */
.remember-row {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 4px;
  cursor: pointer;
  user-select: none;
}

.remember-row input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: #ffd700;
  cursor: pointer;
  flex-shrink: 0;
}

.remember-label {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
}

.remember-note {
  color: rgba(255,255,255,0.35);
  font-size: 0.8rem;
}

/* === Error === */
.login-error {
  min-height: 24px;
  font-size: 0.85rem;
  color: #ff3b30;
  text-align: center;
  margin-bottom: 4px;
  animation: shake 0.3s ease;
}

@keyframes shake {
  0%,100% { transform: translateX(0); }
  25%      { transform: translateX(-6px); }
  75%      { transform: translateX(6px); }
}

/* === Login button === */
.btn-login {
  width: 100%;
  padding: 14px;
  margin-top: 8px;
  background: linear-gradient(135deg, #ffd700, #ff8c00);
  border: none;
  border-radius: 12px;
  color: #1a1a2e;
  font-family: 'Be Vietnam Pro', 'Segoe UI', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.25s ease;
  box-shadow: 0 4px 20px rgba(255,215,0,0.35);
  letter-spacing: 0.3px;
}

.btn-login:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255,215,0,0.5);
}

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

.btn-login:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Loading spinner */
.spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(26,26,46,0.4);
  border-top-color: #1a1a2e;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* === Responsive === */
@media (max-width: 480px) {
  .login-card { padding: 32px 24px; }
  .login-title { font-size: 1.3rem; }
}
