/* ---------------------------------------------------------------
   Aurora auth — global styles
   --------------------------------------------------------------- */

/* Smooth, accessible focus state */
*:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(44, 130, 107, 0.18);
  border-radius: 0.5rem;
}

/* Custom input look. Tailwind builds the bulk; we polish the rest. */
.input {
  width: 100%;
  padding: 0.875rem 1rem 0.875rem 2.75rem;
  border-radius: 0.75rem;
  background: #ffffff;
  border: 1px solid #d5dae3;
  font-size: 0.95rem;
  color: #1d2233;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.input::placeholder { color: #aab3c2; }
.input:hover  { border-color: #aab3c2; }
.input:focus  {
  border-color: #2c826b;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(44,130,107,0.12);
}
.input.has-error {
  border-color: #ef4444;
  box-shadow: 0 0 0 4px rgba(239,68,68,0.12);
}

/* Input icon wrapper */
.field { position: relative; }
.field > svg.field-icon {
  position: absolute;
  left: 0.95rem;
  top: 50%;
  transform: translateY(-50%);
  color: #7c8699;
  pointer-events: none;
}
.field .toggle-pwd {
  position: absolute;
  right: 0.6rem;
  top: 50%;
  transform: translateY(-50%);
  padding: 0.4rem;
  border-radius: 0.5rem;
  color: #7c8699;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.field .toggle-pwd:hover { color: #2c3346; background: #f6f7f9; }

/* Primary button */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
  background: #1d2233;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  transition: transform .12s ease, background-color .15s ease, box-shadow .15s ease;
  box-shadow: 0 1px 2px rgba(15,19,34,0.08), 0 6px 18px -6px rgba(15,19,34,0.25);
}
.btn-primary:hover    { background: #0f1322; }
.btn-primary:active   { transform: translateY(1px); }
.btn-primary[disabled]{ opacity: .6; cursor: not-allowed; }

/* Secondary (Google) button */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: 0.75rem;
  background: #ffffff;
  border: 1px solid #d5dae3;
  color: #1d2233;
  font-weight: 500;
  font-size: 0.95rem;
  transition: border-color .15s ease, background-color .15s ease;
}
.btn-secondary:hover { border-color: #aab3c2; background: #f6f7f9; }

/* Auth shell */
.auth-card {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(213,218,227,0.6);
  border-radius: 1.25rem;
  box-shadow: 0 1px 2px rgba(15,19,34,0.04), 0 20px 60px -20px rgba(15,19,34,0.18);
}

/* Strength meter */
.meter {
  height: 4px;
  border-radius: 999px;
  background: #eceef2;
  overflow: hidden;
}
.meter > span {
  display: block;
  height: 100%;
  width: 0;
  background: #ef4444;
  border-radius: 999px;
  transition: width .25s ease, background-color .25s ease;
}
.meter[data-score="1"] > span { width: 25%; background: #ef4444; }
.meter[data-score="2"] > span { width: 50%; background: #f59e0b; }
.meter[data-score="3"] > span { width: 75%; background: #84cc16; }
.meter[data-score="4"] > span { width: 100%; background: #2c826b; }

/* Slide-in for flash toasts */
@keyframes slideIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Modal / profile update styles */
.shadow-modal {
  box-shadow: 0 8px 30px rgba(15,19,34,0.12), 0 2px 6px rgba(15,19,34,0.06);
}

#profile-update-modal { z-index: 70; }
.modal-panel { border-radius: 0.9rem; overflow: hidden; }
.modal-info { background: linear-gradient(180deg, rgba(44,130,107,0.04), rgba(15,19,34,0.02)); }
.modal-info h3 { color: #0f1322; }
.modal-form { background: #ffffff; }

.modal-input { padding-left: 1rem; padding-right: 1rem; }

/* Responsive: small screens stack, wide screens show side-by-side */
@media (max-width: 767px) {
  .modal-panel { border-radius: 0.75rem; }
  .modal-info { padding: 1rem; }
  .modal-form { padding: 1rem; }
}

@media (min-width: 768px) {
  .modal-panel { grid-template-columns: 1fr 1fr; }
  .modal-info { padding: 2rem; }
  .modal-form { padding: 2rem; }
}

/* Subtle stagger for form rows on first paint */
@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.stagger > * {
  opacity: 0;
  animation: rise .45s ease forwards;
}
.stagger > *:nth-child(1){ animation-delay: .05s; }
.stagger > *:nth-child(2){ animation-delay: .12s; }
.stagger > *:nth-child(3){ animation-delay: .19s; }
.stagger > *:nth-child(4){ animation-delay: .26s; }
.stagger > *:nth-child(5){ animation-delay: .33s; }
.stagger > *:nth-child(6){ animation-delay: .40s; }
.stagger > *:nth-child(7){ animation-delay: .47s; }
.stagger > *:nth-child(8){ animation-delay: .54s; }
