/* ═══════════════════════════════════════
   auth.css — login & register
═══════════════════════════════════════ */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Segoe UI", system-ui, sans-serif;
  background: #0a0c10;
  color: #e5e7eb;
  min-height: 100vh;
}

/* ── BACKGROUND ── */
.auth-bg {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  position: relative;
  overflow: hidden;
}

/* Ambient blobs */
.blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
  pointer-events: none;
}
.blob-1 {
  width: 500px;
  height: 500px;
  background: #22c55e;
  top: -120px;
  left: -120px;
  animation: drift 12s ease-in-out infinite alternate;
}
.blob-2 {
  width: 400px;
  height: 400px;
  background: #3b82f6;
  bottom: -100px;
  right: -100px;
  animation: drift 16s ease-in-out infinite alternate-reverse;
}
@keyframes drift {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(40px, 30px) scale(1.08);
  }
}

/* ── WRAPPER ── */
.auth-wrap {
  width: 100%;
  max-width: 420px;
  position: relative;
  z-index: 1;
}

/* ── BRAND ── */
.auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  margin-bottom: 28px;
}
.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #000;
}
.brand-name {
  font-size: 1.2rem;
  font-weight: 800;
  color: #f3f4f6;
  letter-spacing: -0.02em;
}
.brand-sub {
  font-size: 0.72rem;
  color: #6b7280;
  font-weight: 500;
}

/* ── CARD ── */
.auth-card {
  background: #0f1117;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}
.auth-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #f3f4f6;
  margin-bottom: 6px;
}
.auth-desc {
  font-size: 0.85rem;
  color: #6b7280;
  margin-bottom: 24px;
}

/* ── ALERTS ── */
.alert-error,
.alert-success {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  margin-bottom: 18px;
  font-weight: 500;
}
.alert-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #fca5a5;
}
.alert-success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.25);
  color: #86efac;
}
.alert-success a {
  color: #4ade80;
  font-weight: 600;
  margin-left: 6px;
}

/* ── FORM ── */
.form-group {
  margin-bottom: 16px;
}
.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #9ca3af;
  margin-bottom: 6px;
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.input-icon {
  position: absolute;
  left: 12px;
  color: #4b5563;
  font-size: 0.9rem;
  pointer-events: none;
}
.auth-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 9px;
  color: #e5e7eb;
  font-size: 0.9rem;
  padding: 10px 40px 10px 36px;
  outline: none;
  transition:
    border-color 0.18s,
    box-shadow 0.18s;
}
.auth-input::placeholder {
  color: #4b5563;
}
.auth-input:focus {
  border-color: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.12);
}

/* Password toggle */
.eye-btn {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  color: #4b5563;
  cursor: pointer;
  font-size: 0.9rem;
  padding: 4px;
  transition: color 0.15s;
}
.eye-btn:hover {
  color: #9ca3af;
}

/* ── PASSWORD STRENGTH ── */
.strength-wrap {
  height: 3px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  margin-top: 8px;
  overflow: hidden;
}
.strength-bar {
  height: 100%;
  width: 0;
  border-radius: 10px;
  transition:
    width 0.3s ease,
    background 0.3s ease;
}
.strength-label {
  font-size: 0.72rem;
  font-weight: 600;
  margin-top: 4px;
  min-height: 16px;
  transition: color 0.3s;
}

/* ── SUBMIT BUTTON ── */
.auth-btn {
  width: 100%;
  padding: 11px;
  border-radius: 9px;
  border: none;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #000;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 20px;
  transition:
    opacity 0.18s,
    transform 0.18s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.auth-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}
.auth-btn:active {
  transform: translateY(0);
}

/* ── FOOTER LINK ── */
.auth-footer {
  text-align: center;
  font-size: 0.83rem;
  color: #6b7280;
  margin-top: 22px;
}
.auth-footer a {
  color: #22c55e;
  font-weight: 600;
  text-decoration: none;
  margin-left: 4px;
}
.auth-footer a:hover {
  text-decoration: underline;
}

/* ── RESPONSIVE ── */
@media (max-width: 480px) {
  .auth-card {
    padding: 24px 18px;
  }
}
