/* ===== Register (sin header/footer) ===== */
*{ box-sizing: border-box; }

.reg-page{
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px 0;
  /* IMPORTANTE:
     El fondo global (Fondo.png) vive en core/static/core/css/base.css.
     Si ponemos un fondo sólido aquí, tapamos la marca de agua.
  */
  background: transparent;
}

/* Flecha */
.back-btn--page{
  position: fixed;
  top: 20px;
  left: 18px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 900;
  font-size: 26px;
  line-height: 1;
  color: #0b1320;
  background: linear-gradient(180deg, #c7a24a, #b38f3d);
  box-shadow: 0 14px 34px rgba(199,162,74,.28);
  z-index: 200;
}
.back-btn--page:active{ transform: translateY(1px); }

/* Card */
.reg-card{
  width: min(1120px, 92%);
  background: #fff;
  border-radius: 22px;
  border: 1px solid rgba(7,26,43,.10);
  box-shadow: 0 24px 70px rgba(7,26,43,.12);
  overflow: hidden; /* evita desbordes */
  display: grid;
  grid-template-columns: 1fr 1.25fr;
}

/* LEFT */
.reg-left{
  padding: 26px;
  color: #fff;
  background:
    radial-gradient(700px 240px at 20% 0%, rgba(199,162,74,.22), transparent 60%),
    linear-gradient(180deg, #061821, #071c26);
}

.brand{
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.brand__logo{
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(199,162,74,.18);
  border: 1px solid rgba(199,162,74,.40);
  font-weight: 900;
}

.brand__name{
  font-weight: 900;
  color: rgba(234,242,255,.95);
}

.reg-left h1{
  margin: 0 0 8px;
  font-size: 34px;
  letter-spacing: -.02em;
}

.muted{
  margin: 0 0 18px;
  color: rgba(255,255,255,.78);
}

.doc-img{
  width: 100%;
  height: 340px;
  object-fit: contain; /* PNG/ilustración = perfecto */
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  padding: 12px;
}

/* RIGHT */
.reg-right{
  padding: 26px;
  min-width: 0; /* CLAVE para que no se salga nada */
}

.form{
  display: grid;
  gap: 14px;
}

/* filas de 2 columnas sin overflow */
.row{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

/* top radios */
.row--top{
  margin-bottom: 2px;
}

.field{
  min-width: 0; /* CLAVE */
}

label{
  display: block;
  font-weight: 900;
  margin-bottom: 6px;
  color: rgba(7,26,43,.92);
}

/* inputs: que nunca excedan */
input, select, textarea{
  width: 100%;
  max-width: 100%;
  display: block;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(7,26,43,.14);
  outline: none;
  font: inherit;
  background: #fff;
}

input:focus, select:focus, textarea:focus{
  border-color: rgba(199,162,74,.75);
  box-shadow: 0 0 0 5px rgba(199,162,74,.20);
}

/* radios bonitos */
.radios{
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(7,26,43,.10);
  background: rgba(7,26,43,.03);
}
.radios label{
  margin: 0;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.radios input[type="radio"]{
  width: auto;
}

/* password wrapper */
.pw{
  position: relative;
}
.pw input{
  padding-right: 52px;
}
.pw__toggle{
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(7,26,43,.14);
  background: rgba(7,26,43,.03);
  cursor: pointer;
}

/* botón */
.w100{ width: 100%; }

/* errores */
.error{
  color: #b42318;
  font-size: 13px;
  margin-top: 6px;
}

.alert{
  background: linear-gradient(180deg, #fff7df, #fff2c9);
  border: 1px solid rgba(199,162,74,.40);
  padding: 10px 12px;
  border-radius: 14px;
}

/* texto inferior */
.mini{
  margin: 0;
  color: rgba(7,26,43,.65);
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

/* responsive */
@media (max-width: 980px){
  .reg-card{ grid-template-columns: 1fr; }
  .doc-img{ height: 260px; }
}

@media (max-width: 720px){
  .row{ grid-template-columns: 1fr; }
}
/* ===== Botones (Register) ===== */

/* Botón principal: "Crear cuenta" */
.form button[type="submit"]{
  width: 100%;
  padding: 14px 16px;
  border: 0;
  border-radius: 999px;
  font-weight: 900;
  cursor: pointer;
  color: #0b1320;

  /* dorado tipo tu marca */
  background: linear-gradient(180deg, #c7a24a, #b38f3d);
  box-shadow: 0 14px 34px rgba(199,162,74,.28);

  transition: transform .06s ease, filter .18s ease, box-shadow .18s ease;
}

.form button[type="submit"]:hover{
  filter: brightness(1.03);
  box-shadow: 0 18px 44px rgba(199,162,74,.34);
}

.form button[type="submit"]:active{
  transform: translateY(1px);
}

.form button[type="submit"]:disabled{
  opacity: .6;
  cursor: not-allowed;
  box-shadow: none;
}

/* Link "Inicia sesión" (texto inferior) */
.mini a{
  color: #0b3a53;               /* azul oscuro del tema */
  font-weight: 900;
  text-decoration: none;
  border-bottom: 2px solid rgba(11,58,83,.25);
  transition: color .18s ease, border-color .18s ease;
}

.mini a:hover{
  color: #c7a24a;               /* dorado al hover */
  border-color: rgba(199,162,74,.55);
}

/* ===== Términos & Privacidad (checkbox) ===== */

.terms-stack{
  display: grid;
  gap: 10px;
}

.terms-row{
  margin-top: 2px;
}

.terms-row__label{
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 800;
  color: rgba(7,26,43,.72);
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(7,26,43,.10);
  background: rgba(7,26,43,.03);
  cursor: pointer;
}

.terms-row__label input[type="checkbox"]{
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: #c7a24a;
}

.terms-row__link{
  color: #0b3a53;
  font-weight: 900;
  text-decoration: none;
  border-bottom: 2px solid rgba(11,58,83,.20);
}

.terms-row__link:hover{
  color: #c7a24a;
  border-color: rgba(199,162,74,.55);
}
