/* ========================================
   LOGIN / AUTH PAGES — Premium Design
   ======================================== */

/* ---- Animated Background ---- */
.auth-bg {
  position: fixed; inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.auth-bg .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .15;
}
.auth-bg .orb-1 {
  width: 400px; height: 400px;
  background: var(--accent);
  top: -120px; right: -80px;
  animation: orb-float-1 12s ease-in-out infinite alternate;
}
.auth-bg .orb-2 {
  width: 300px; height: 300px;
  background: var(--accent-2);
  bottom: -80px; left: -60px;
  animation: orb-float-2 10s ease-in-out infinite alternate;
}
.auth-bg .orb-3 {
  width: 200px; height: 200px;
  background: var(--accent-3);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation: orb-float-3 14s ease-in-out infinite alternate;
}
@keyframes orb-float-1 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-40px, 60px) scale(1.2); }
}
@keyframes orb-float-2 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(50px, -40px) scale(1.15); }
}
@keyframes orb-float-3 {
  0% { transform: translate(-50%, -50%) scale(1); }
  100% { transform: translate(-30%, -60%) scale(1.3); }
}

/* ---- Auth Card ---- */
.auth-card {
  position: relative;
  z-index: 1;
  max-width: 440px;
  width: 100%;
  margin: 0 auto;
  background: rgba(18,14,11,.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(62,46,36,.4);
  border-radius: 20px;
  padding: 36px 32px;
  box-shadow:
    0 16px 50px rgba(0,0,0,.4),
    0 0 60px rgba(232,133,74,.04);
  animation: auth-card-in .5s var(--ease-smooth);
}
@keyframes auth-card-in {
  from { opacity: 0; transform: translateY(20px) scale(.97); }
  to { opacity: 1; transform: none; }
}

/* Logo area */
.auth-logo {
  text-align: center;
  margin-bottom: 20px;
}
.auth-logo img {
  width: 56px; height: 56px;
  border-radius: 14px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(232,133,74,.2));
  margin-bottom: 10px;
}
.auth-logo h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--text) 30%, var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
}
.auth-logo .subtitle {
  font-size: .88rem;
  color: var(--muted);
}

/* ---- Form fields ---- */
.auth-form {
  display: grid;
  gap: 16px;
}
.input-group {
  position: relative;
}
.input-group .input-icon {
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  color: rgba(176,154,143,.5);
  pointer-events: none;
  transition: color var(--tr-fast);
  z-index: 2;
}
.input-group input {
  padding-left: 42px;
  height: 48px;
}
.input-group input:focus ~ .input-icon {
  color: var(--accent);
}

/* Password toggle */
.input-group .pass-toggle {
  position: absolute;
  right: 12px; top: 50%;
  transform: translateY(-50%);
  background: none; border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 1.1rem;
  padding: 4px;
  z-index: 2;
  transition: color var(--tr-fast);
}
.input-group .pass-toggle:hover { color: var(--accent); }

/* ---- Auth button ---- */
.auth-btn {
  width: 100%;
  height: 48px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .02em;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

/* ---- Error / Success messages ---- */
.auth-msg {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--radius-xs);
  font-size: .88rem;
  font-weight: 500;
  animation: msg-slide .35s var(--ease-smooth);
}
@keyframes msg-slide {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}
.auth-msg.error {
  background: rgba(196,58,58,.1);
  border: 1px solid rgba(196,58,58,.25);
  color: #f87171;
}
.auth-msg.success {
  background: rgba(34,197,94,.1);
  border: 1px solid rgba(34,197,94,.25);
  color: #4ade80;
}

/* ---- Footer link ---- */
.auth-footer {
  text-align: center;
  margin-top: 18px;
  font-size: .9rem;
  color: var(--muted);
}
.auth-footer a {
  color: var(--accent);
  font-weight: 600;
  transition: color var(--tr-fast);
}
.auth-footer a:hover {
  color: var(--accent-2);
}

/* ---- Responsive ---- */
@media (max-width: 520px) {
  .auth-card {
    margin: 0 12px;
    padding: 28px 20px;
    border-radius: 16px;
  }
}
