/* ============================================================
   AUTH CSS — Login Page
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  background: #f0f4ff;
  color: #12151e;
  min-height: 100vh;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
input, button { font-family: inherit; }

/* Background */
.auth-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.auth-orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: .5;
}
.auth-orb--1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #bfdbfe, transparent);
  top: -200px; right: -150px;
}
.auth-orb--2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #fecdd3, transparent);
  bottom: -100px; left: -120px;
}
.auth-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(59,130,246,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,246,.04) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* Main */
.auth-main {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

/* Card */
.auth-card {
  width: 100%;
  max-width: 440px;
  background: #fff;
  border-radius: 24px;
  padding: 2.5rem 2rem;
  box-shadow: 0 20px 60px rgba(59,130,246,.14), 0 4px 20px rgba(0,0,0,.06);
  border: 1.5px solid #e0eaff;
}

/* Logo */
.auth-logo { text-align: center; margin-bottom: 1.75rem; }
.auth-logo img { height: 44px; width: auto; object-fit: contain; }

/* Header */
.auth-header { text-align: center; margin-bottom: 1.75rem; }
.auth-header h1 {
  font-size: 1.6rem; font-weight: 800; color: #12151e;
  margin-bottom: .4rem;
}
.auth-header p {
  font-size: .9rem; color: #6b7280; line-height: 1.6;
}
.auth-header p span { display: block; font-size: .82rem; color: #9ca3af; }

/* Error */
.auth-error {
  display: flex; align-items: center; gap: .5rem;
  background: #fff1f2; border: 1px solid #fecdd3;
  border-radius: 10px;
  padding: .75rem 1rem;
  color: #be123c;
  font-size: .88rem; font-weight: 600;
  margin-bottom: 1.25rem;
}

/* Form */
.auth-form { display: flex; flex-direction: column; gap: 1.1rem; }
.auth-field { display: flex; flex-direction: column; gap: .4rem; }
.auth-field label {
  font-size: .82rem; font-weight: 700; color: #374151;
  letter-spacing: .02em;
}
.auth-input-wrap {
  position: relative; display: flex; align-items: center;
}
.auth-input-icon {
  position: absolute; left: .9rem;
  color: #9ca3af; pointer-events: none; flex-shrink: 0;
}
.auth-input-wrap input {
  width: 100%;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  padding: .85rem 3rem .85rem 2.6rem;
  font-size: .95rem;
  color: #1f2937;
  background: #f9fafb;
  transition: border-color .2s, box-shadow .2s, background .2s;
  outline: none;
}
.auth-input-wrap input:focus {
  border-color: #3b82f6;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(59,130,246,.12);
}
.auth-toggle-pw {
  position: absolute; right: .9rem;
  background: none; border: none; cursor: pointer;
  color: #9ca3af; padding: 0;
  display: flex; align-items: center;
}
.auth-toggle-pw:hover { color: #374151; }

/* Submit */
.auth-submit {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  background: linear-gradient(135deg, #ef4444 0%, #8b5cf6 100%);
  color: #fff;
  border: none; border-radius: 12px;
  padding: 1rem;
  font-size: 1rem; font-weight: 700;
  cursor: pointer;
  transition: all .2s;
  box-shadow: 0 4px 18px rgba(239,68,68,.32);
  margin-top: .3rem;
}
.auth-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(239,68,68,.40);
}

/* Footer */
.auth-footer { text-align: center; margin-top: 1.5rem; }
.auth-footer a { font-size: .85rem; color: #6b7280; transition: color .2s; }
.auth-footer a:hover { color: #3b82f6; }
