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

body {
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: #1a1a2e;
}

body::before {
  content: '';
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(181,83,60,0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(212,175,55,0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(44,24,16,0.2) 0%, transparent 50%);
  z-index: 0;
}

.bg-grid {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 0;
}

.login-card {
  position: relative;
  z-index: 1;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 28px;
  padding: 52px 44px;
  width: 100%;
  max-width: 420px;
  box-shadow:
    0 30px 80px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(255,255,255,0.1);
  animation: cardEntrance 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
  transform: translateY(30px);
}

@keyframes cardEntrance {
  to { opacity: 1; transform: translateY(0); }
}

.login-logo {
  text-align: center;
  margin-bottom: 40px;
}

.login-logo .icon-wrap {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, rgba(181,83,60,0.2), rgba(212,175,55,0.1));
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: iconPulse 3s ease-in-out infinite;
}

@keyframes iconPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212,175,55,0.2); }
  50% { box-shadow: 0 0 0 12px rgba(212,175,55,0); }
}

.login-logo .icon-wrap i {
  font-size: 32px;
  color: #d4af37;
}

.login-logo h1 {
  font-family: 'Playfair Display', serif;
  color: #fff;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.login-logo h1 span {
  color: #d4af37;
}

.login-logo p {
  color: rgba(255,255,255,0.4);
  font-size: 13px;
  margin-top: 6px;
  font-weight: 400;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.input-group {
  position: relative;
}

.input-group .input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.3);
  font-size: 16px;
  pointer-events: none;
  transition: color 0.3s;
}

.input-group:focus-within .input-icon {
  color: #d4af37;
}

.input-group input {
  width: 100%;
  padding: 14px 16px 14px 46px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  color: #fff;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: all 0.3s;
}

.input-group input:focus {
  border-color: #d4af37;
  background: rgba(255,255,255,0.1);
  box-shadow: 0 0 0 3px rgba(212,175,55,0.1);
}

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

.input-group label {
  display: block;
  color: rgba(255,255,255,0.5);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 6px;
}

.btn-login {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, #d4af37, #c09a2e);
  border: none;
  border-radius: 12px;
  color: #1a1a2e;
  font-size: 16px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
}

.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(212,175,55,0.3);
}

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

.btn-login.loading {
  pointer-events: none;
  opacity: 0.8;
}

.btn-login .spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(26,26,46,0.3);
  border-top: 2px solid #1a1a2e;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

.btn-login.loading .spinner {
  display: inline-block;
}

.btn-login.loading .btn-text {
  display: none;
}

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

.error-msg {
  background: rgba(255,68,68,0.12);
  border: 1px solid rgba(255,68,68,0.2);
  color: #ff6b6b;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 13px;
  display: none;
  line-height: 1.4;
}

.error-msg.show { display: flex; align-items: center; gap: 8px; }

.error-msg i { font-size: 14px; }

.login-footer {
  text-align: center;
  margin-top: 28px;
  color: rgba(255,255,255,0.2);
  font-size: 12px;
  letter-spacing: 0.3px;
}

.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 0;
  pointer-events: none;
}

.bg-orb.orb-1 {
  width: 400px; height: 400px;
  background: rgba(181,83,60,0.12);
  top: -100px; right: -100px;
  animation: orbFloat 20s ease-in-out infinite;
}

.bg-orb.orb-2 {
  width: 350px; height: 350px;
  background: rgba(212,175,55,0.08);
  bottom: -80px; left: -80px;
  animation: orbFloat 25s ease-in-out infinite reverse;
}

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

@media (max-width: 480px) {
  .login-card { padding: 36px 24px; margin: 16px; border-radius: 20px; }
  .login-logo h1 { font-size: 24px; }
}
