/* ================================================================
   register.css — NuestroSí Register page styles
   ================================================================ */

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; padding: 0; }

body {
  font-family: "Manrope", sans-serif;
  color: #1d1b1a;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ── 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-error a { color: #c0392b; font-weight: 600; text-decoration: underline; }
.ns-error a:hover { opacity: .75; }

.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); } }

/* ── Nav ── */
.reg-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
  border-bottom: 1px solid #ede8e3;
  background: #fff;
  flex-shrink: 0;
}
.reg-nav-logo { font-family: "Noto Serif", serif; font-style: italic; font-size: 22px; color: #1d1b1a; text-decoration: none; }
.reg-nav-help { font-size: 13px; font-weight: 600; color: #7a7168; text-decoration: none; }
.reg-nav-help:hover { color: #7a5642; }

/* ── Body grid ── */
.reg-body { flex: 1; display: grid; grid-template-columns: 1fr 1fr; }
@media (max-width: 768px) { .reg-body { grid-template-columns: 1fr; } .reg-image-col { display: none; } }

/* ── Image column ── */
.reg-image-col { position: relative; overflow: hidden; background: #1d1b1a; }
.reg-slider    { position: absolute; inset: 0; }
.reg-slider img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  will-change: opacity;
}
.reg-slider img.ns-active { opacity: 1; }

.reg-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,10,5,.72) 0%, rgba(15,10,5,.10) 55%, transparent 100%);
}
.reg-image-text              { position: absolute; bottom: 36px; left: 36px; right: 36px; color: #fff; }
.reg-image-text h2           { font-family: "Noto Serif", serif; font-weight: 400; font-style: italic; font-size: 22px; margin: 0 0 8px; line-height: 1.3; }
.reg-image-text p            { font-size: 13px; color: rgba(255,255,255,.75); margin: 0; line-height: 1.55; }

/* ── Form column ── */
.reg-form-col {
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 52px;
}
@media (max-width: 1024px) { .reg-form-col { padding: 40px 36px; } }
@media (max-width:  480px) { .reg-form-col { padding: 32px 24px; } }

.reg-form-inner            { width: 100%; max-width: 360px; }
.reg-form-inner h1         { font-family: "Noto Serif", serif; font-size: 24px; font-weight: 400; margin: 0 0 6px; color: #1d1b1a; }
.reg-form-inner .subtitle  { font-size: 13.5px; color: #7a7168; margin: 0 0 28px; line-height: 1.5; }

/* ── Checkbox ── */
.ns-checkbox-wrap  { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.ns-checkbox {
  width: 15px;
  height: 15px;
  border: 1.5px solid #c4bbb4;
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 2px;
  appearance: none;
  cursor: pointer;
  transition: background .15s, border-color .15s;
  background: #fff;
}
.ns-checkbox:checked {
  background: #7a5642;
  border-color: #7a5642;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 10 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 4l3 3 5-6' stroke='%23fff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px 8px;
}
.ns-checkbox-label       { font-size: 12.5px; color: #7a7168; line-height: 1.5; user-select: none; }
.ns-checkbox-label a     { color: #7a5642; text-decoration: underline; }
.ns-checkbox-label a:hover { color: #5a3e2d; }

/* ── Verify panel ── */
.verify-panel    { background: #faf7f4; border: 1px solid #e6dfd8; border-radius: 10px; padding: 24px; text-align: center; }
.verify-panel h3 { font-family: "Noto Serif", serif; font-size: 18px; font-weight: 400; margin: 0 0 8px; }
.verify-panel p  { font-size: 13px; color: #7a7168; margin: 0 0 18px; line-height: 1.5; }
.verify-code-input {
  width: 160px;
  text-align: center;
  font-size: 22px;
  letter-spacing: .3em;
  font-family: "Manrope", sans-serif;
  padding: 10px 14px;
  border: 1px solid #ddd8d2;
  border-radius: 7px;
  outline: none;
  margin: 0 auto 16px;
  display: block;
  transition: border-color .18s, box-shadow .18s;
}
.verify-code-input:focus { border-color: #a0887a; box-shadow: 0 0 0 3px rgba(122,86,66,.12); }

/* ── Footer ── */
.reg-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 40px;
  border-top: 1px solid #ede8e3;
  flex-shrink: 0;
}
.reg-footer-logo  { font-family: "Noto Serif", serif; font-style: italic; font-size: 15px; color: #1d1b1a; text-decoration: none; }
.reg-footer-links { display: flex; gap: 20px; }
.reg-footer-links a { font-size: 12px; color: #9b9089; text-decoration: none; }
.reg-footer-links a:hover { color: #7a5642; }
.reg-footer-copy  { font-size: 12px; color: #b5aca4; }

/* ── Layout helpers ── */
.ns-field       { margin-bottom: 16px; }
.ns-field--lg   { margin-bottom: 20px; }
.ns-field--xl   { margin-bottom: 22px; }
.ns-error--mb   { margin-bottom: 12px; }
.ns-error--center { text-align: center; }

#panel-verify   { display: none; margin-top: 24px; }

.ns-resend-btn  {
  display: block;
  margin: 12px auto 0;
  font-size: 12px;
  color: #7a5642;
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
}

.ns-divider--section {
  margin-top: 22px;
  border-top: 1px solid #ede8e3;
  padding-top: 18px;
}

.ns-btn-google--mt { margin-top: 14px; }

.ns-switch-text {
  margin-top: 22px;
  font-size: 13px;
  color: #7a7168;
  text-align: center;
  margin-bottom: 0;
}
.ns-switch-link {
  font-size: 13px;
  font-weight: 700;
  color: #7a5642;
  text-decoration: underline;
  text-underline-offset: 2px;
}
