/* ================================================================
   login.css — NuestroSí Login page styles
   ================================================================ */

*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: "Manrope", sans-serif;
  color: #1d1b1a;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  background: radial-gradient(ellipse 120% 90% at 50% 0%, #f5e7d8 0%, #fef8f5 55%, #fdf3eb 100%);
}

/* ── Form controls ── */
.ns-label {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #7a7168;
  margin-bottom: 7px;
}

.ns-input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #ddd8d2;
  border-radius: 7px;
  font-size: 14px;
  font-family: "Manrope", sans-serif;
  background: #fff;
  color: #1d1b1a;
  outline: none;
  transition: border-color .18s, box-shadow .18s;
}
.ns-input::placeholder { color: #bbb3aa; }
.ns-input:focus { border-color: #a0887a; box-shadow: 0 0 0 3px rgba(122,86,66,.12); }

.ns-btn-primary {
  width: 100%;
  padding: 13px;
  background: #7a5642;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-family: "Manrope", sans-serif;
  border: none;
  border-radius: 7px;
  cursor: pointer;
  transition: background .18s, transform .1s, box-shadow .18s;
  box-shadow: 0 2px 8px rgba(122,86,66,.22);
}
.ns-btn-primary:hover    { background: #6a4838; box-shadow: 0 4px 14px rgba(122,86,66,.30); }
.ns-btn-primary:active   { transform: scale(0.97); }
.ns-btn-primary:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.ns-btn-google {
  width: 100%;
  padding: 11px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid #ddd8d2;
  border-radius: 7px;
  background: #fff;
  color: #1d1b1a;
  font-size: 13px;
  font-weight: 600;
  font-family: "Manrope", sans-serif;
  cursor: pointer;
  transition: background .18s, box-shadow .18s, transform .1s;
}
.ns-btn-google:hover  { background: #faf7f5; box-shadow: 0 1px 6px rgba(0,0,0,.08); }
.ns-btn-google:active { transform: scale(0.97); }

.ns-divider { display: flex; align-items: center; gap: 12px; color: #b5aca4; font-size: 12px; }
.ns-divider::before,
.ns-divider::after { content: ""; flex: 1; height: 1px; background: #e8e2dc; }

.ns-error  { font-size: 12px; color: #c0392b; margin-top: 5px; display: none; line-height: 1.4; }

.ns-spinner {
  display: inline-block;
  width: 13px;
  height: 13px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: ns-spin .55s linear infinite;
  vertical-align: middle;
  margin-right: 7px;
}
@keyframes ns-spin { to { transform: rotate(360deg); } }

/* ── Layout helpers ── */
.ns-field      { margin-bottom: 18px; }
.ns-field--lg  { margin-bottom: 20px; }

.ns-field-row  { display: flex; justify-content: space-between; align-items: center; margin-bottom: 7px; }
.ns-field-row .ns-label { margin-bottom: 0; }

.ns-forgot-link {
  font-size: 11px;
  font-weight: 600;
  color: #9b9089;
  text-decoration: none;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.ns-error--mb   { margin-bottom: 12px; }
.ns-divider--lg { margin: 22px 0 18px; }

.ns-auth-switch {
  margin-top: 24px;
  border-top: 1px solid #ede8e3;
  padding-top: 20px;
  text-align: center;
}
.ns-switch-text { font-size: 13px; color: #7a7168; margin: 0; }
.ns-switch-link {
  font-size: 13px;
  font-weight: 700;
  color: #1d1b1a;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── Logo header ── */
.login-logo     { padding-top: 44px; text-align: center; }
.login-logo a   { font-family: "Noto Serif", serif; font-style: italic; font-size: 28px; color: #1d1b1a; text-decoration: none; }

/* ── Card ── */
.login-card-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 32px 16px 0;
}
.login-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,.07);
  border-radius: 18px;
  box-shadow: 0 4px 32px rgba(122,86,66,.09), 0 1px 6px rgba(0,0,0,.04);
  padding: 42px 40px 38px;
  width: 100%;
  max-width: 460px;
}
@media (max-width: 480px) { .login-card { padding: 32px 24px 28px; } }

.login-card h1 {
  font-family: "Noto Serif", serif;
  font-size: 28px;
  font-weight: 400;
  line-height: 1.25;
  text-align: center;
  margin: 0 0 10px;
  color: #1d1b1a;
}
.login-card .subtitle {
  font-size: 13.5px;
  color: #7a7168;
  text-align: center;
  margin: 0 0 28px;
  line-height: 1.55;
}

/* ── Deco images ── */
.login-deco     { display: flex; justify-content: center; gap: 20px; padding: 28px 0 0; }
.login-deco-img {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  opacity: .75;
  filter: grayscale(.25) brightness(.97);
}

/* ── Footer ── */
.login-footer {
  width: 100%;
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.login-footer-logo  { font-family: "Noto Serif", serif; font-style: italic; font-size: 15px; color: #1d1b1a; text-decoration: none; }
.login-footer-copy  { font-size: 12px; color: #b5aca4; }
.login-footer-links { display: flex; gap: 20px; }
.login-footer-links a { font-size: 12px; color: #9b9089; text-decoration: none; }
.login-footer-links a:hover { color: #7a5642; text-decoration: underline; }
