/* === Interdoors Brand ===
   La fuente Gilroy y las variables --ui-* viven en sistema.css, que se carga
   antes que esta hoja. Las variables --brand-* se conservan por
   compatibilidad y apuntan al sistema. */
:root{
  --brand-black: #000000;
  --brand-yellow: var(--ui-marca);
  --brand-charcoal: var(--ui-titulo);

  /* Usos por defecto */
  --brand-bg: #FFFFFF;   /* fondo header */
  --brand-primary: var(--brand-yellow);/* botones/links */
  --brand-text-on-dark: #FFFFFF;
  --brand-text-on-light: #111111;

  /* Sombras/hover aproximados */
  --brand-primary-hover: var(--ui-marca-hover);
  --brand-outline: rgba(255,255,255,.6);
}

/* Header */
.navbar {
  background: #ffffff !important;
  border-bottom: 5px solid var(--brand-yellow);
}
.navbar .navbar-brand img {
  width: 285px;
  max-width: 58vw;
  height: auto;
}
.navbar .btn-outline-light{
  color: var(--brand-charcoal);
  border-color: var(--brand-charcoal);
}
.navbar .btn-outline-light:hover{
  background: var(--brand-charcoal);
  color: #ffffff;
}

/* Tipografía base */
body,
button,
input,
select,
textarea,
table,
th,
td{
  font-family: "Gilroy", Arial, sans-serif;
}

body{ color: var(--brand-text-on-light); }

/* Enlaces y botones con color de marca */
a{ color: var(--brand-primary); text-decoration: none; }
a:hover{ color: var(--brand-primary-hover); text-decoration: underline; }

.btn-primary{
  background-color: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #000; /* sobre amarillo se lee mejor en negro */
}
.btn-primary:hover{
  background-color: var(--brand-primary-hover);
  border-color: var(--brand-primary-hover);
  color: #000;
}

.btn-success{ /* si quieres “éxito” también en amarillo, puedes omitir esto */
  background-color: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #000;
}
.btn-success:hover{
  background-color: var(--brand-primary-hover);
  border-color: var(--brand-primary-hover);
  color: #000;
}

/* Badges de estado (opcional si usas estados) */
.badge-status{
  font-weight: 600;
  letter-spacing:.2px;
}
.badge-draft    { background:#777; color:#fff; }     /* Borrador */
.badge-sent     { background:#0EA5E9; color:#fff; }  /* Enviada */
.badge-won      { background:#22C55E; color:#fff; }  /* Ganada */
.badge-lost     { background:#EF4444; color:#fff; }  /* Perdida */

@media print{
  nav, .no-print { display:none !important; }
  .container { margin:0; max-width: 100%; }
  body { background:#fff; }
}

.btn-brand {
  background-color: #F3C61B; /
  color: #212529;
  border-color: #F3C61B;
}
.btn-brand:hover {
  background-color: #e5b50e;
  border-color: #e5b50e;
}

/* Registro */
.register-shell {
  --register-text: #162033;
  --register-muted: #64748b;
  --register-line: rgba(22, 32, 51, 0.1);
  --register-surface: rgba(255, 255, 255, 0.96);
  --register-shadow: 0 28px 70px rgba(15, 23, 42, 0.14);
  --register-visual-bg:
    radial-gradient(circle at 18% 18%, rgba(243, 198, 21, 0.18), transparent 30%),
    linear-gradient(150deg, #121a29 0%, #1b2638 52%, #243247 100%);

  position: relative;
  min-height: calc(100vh - 140px);
  display: grid;
  place-items: center;
  padding: 40px 16px 64px;
  overflow: hidden;
  border-radius: 32px;
  background:
    radial-gradient(circle at top left, rgba(243, 198, 21, 0.08), transparent 22%),
    radial-gradient(circle at bottom right, rgba(23, 32, 50, 0.08), transparent 26%),
    linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
}

.register-layout {
  position: relative;
  z-index: 1;
  width: min(100%, 1160px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  background: var(--register-surface);
  border: 1px solid var(--register-line);
  border-radius: 30px;
  box-shadow: var(--register-shadow);
  overflow: hidden;
}

.register-layout__form {
  padding: clamp(28px, 4vw, 48px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, #ffffff 100%);
}

.register-heading {
  margin-bottom: 24px;
}

.register-title {
  margin: 0;
  color: var(--register-text);
  font-size: clamp(2rem, 3vw, 2.6rem);
  font-weight: 800;
  line-height: 1.05;
  text-align: center;
}

.register-form {
  display: grid;
  gap: 14px;
}

.register-field {
  display: grid;
  gap: 7px;
}

.register-field label {
  color: var(--register-text);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.register-input,
.register-field input {
  width: 100%;
  min-height: 52px;
  padding: 13px 15px;
  border: 1px solid rgba(22, 32, 51, 0.16);
  border-radius: 14px;
  background: #ffffff;
  color: var(--register-text);
  font-size: 0.98rem;
  line-height: 1.4;
  appearance: none;
  -webkit-appearance: none;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease,
    transform 160ms ease;
}

.register-input::placeholder,
.register-field input::placeholder {
  color: #94a3b8;
}

.register-password-control {
  position: relative;
  display: block;
  width: 100%;
  overflow: visible;
}

.register-password-control .register-input,
.register-password-control input {
  box-sizing: border-box;
  padding-right: 58px;
}

.register-password-toggle {
  position: absolute;
  top: 50%;
  right: 12px;
  z-index: 2;
  width: 38px;
  height: 38px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #64748b;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  transition:
    background-color 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease;
}

.register-password-toggle:hover,
.register-password-toggle:focus {
  background: rgba(22, 32, 51, 0.06);
  color: var(--register-text);
  outline: none;
}

.register-password-toggle:focus {
  box-shadow: 0 0 0 3px rgba(243, 198, 21, 0.2);
}

.register-password-toggle[aria-pressed="true"] {
  color: #7a5f00;
  background: rgba(243, 198, 21, 0.16);
}

.register-input:focus,
.register-field input:focus {
  border-color: rgba(243, 198, 21, 0.95);
  box-shadow: 0 0 0 4px rgba(243, 198, 21, 0.18);
  background: #ffffff;
  outline: none;
  transform: translateY(-1px);
}

.register-input.is-invalid-soft,
.register-field input.is-invalid-soft {
  border-color: rgba(185, 28, 28, 0.42);
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.1);
}

.register-field__errors,
.register-alert,
.register-help,
.register-inline-note {
  border-radius: 14px;
  font-size: 0.88rem;
  line-height: 1.45;
}

.register-field__errors,
.register-alert {
  padding: 10px 12px;
  border: 1px solid rgba(185, 28, 28, 0.18);
  background: #fff6f6;
  color: #991b1b;
}

.register-field__errors p,
.register-alert p {
  margin: 0;
}

.register-field__errors p + p,
.register-alert p + p {
  margin-top: 4px;
}

.register-help {
  padding: 11px 13px;
  border: 1px solid rgba(243, 198, 21, 0.28);
  background: #fff9dd;
  color: #715600;
}

.register-help[hidden] {
  display: none !important;
}

.register-help--compact {
  padding: 8px 10px;
  border-color: rgba(22, 32, 51, 0.08);
  background: #f8fafc;
  color: var(--register-muted);
}

.register-help__title {
  display: block;
  margin-bottom: 6px;
  color: #473500;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.register-help__body ul {
  display: grid;
  gap: 4px;
  margin: 0;
  padding-left: 18px;
}

.register-help__body li::marker {
  color: #9c7a00;
}

.register-inline-note {
  padding: 9px 12px;
  border: 1px solid rgba(190, 24, 93, 0.14);
  background: #fff7fb;
  color: #9d174d;
}

.register-inline-note[hidden] {
  display: none !important;
}

.register-submit {
  width: 100%;
  min-height: 52px;
  margin-top: 2px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffd84b 0%, #f3c615 100%);
  color: #241b00;
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 18px 32px rgba(243, 198, 21, 0.24);
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.register-submit:hover,
.register-submit:focus {
  transform: translateY(-1px);
  box-shadow: 0 22px 38px rgba(243, 198, 21, 0.28);
  filter: saturate(1.04);
  outline: none;
}

.register-submit:focus {
  box-shadow:
    0 22px 38px rgba(243, 198, 21, 0.28),
    0 0 0 4px rgba(243, 198, 21, 0.18);
}

.register-submit:active {
  transform: translateY(0);
}

.register-footer {
  margin: 18px 0 0;
  color: var(--register-muted);
  font-size: 0.93rem;
  text-align: center;
}

.register-footer a {
  color: #7a5f00;
  font-weight: 800;
}

.register-footer a:hover {
  color: #5f4800;
}

.register-layout__visual {
  position: relative;
  display: flex;
  min-height: 100%;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--register-visual-bg);
}

.register-visual {
  position: relative;
  width: 100%;
  padding: clamp(34px, 4vw, 46px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #f8fafc;
  overflow: hidden;
}

.register-visual__title {
  position: relative;
  z-index: 1;
  margin: 0 0 14px;
  max-width: 12ch;
  color: var(--brand-yellow);
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 800;
  line-height: 1.02;
}

.register-visual__copy {
  position: relative;
  z-index: 1;
  max-width: 30ch;
  margin: 0;
  color: rgba(241, 245, 249, 0.86);
  font-size: 1rem;
  line-height: 1.65;
}

.register-visual__watermark {
  position: absolute;
  inset: auto -14% -8% auto;
  width: min(96%, 500px);
  aspect-ratio: 1;
  background-image: var(--register-watermark-image);
  background-repeat: no-repeat;
  background-position: right bottom;
  background-size: contain;
  opacity: 0.14;
  filter: saturate(1.02);
  pointer-events: none;
}

@media (max-width: 991px) {
  .register-shell {
    padding: 28px 12px 48px;
    min-height: calc(100vh - 120px);
    border-radius: 24px;
  }

  .register-layout {
    grid-template-columns: 1fr;
  }

  .register-layout__visual {
    min-height: 280px;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .register-visual__title,
  .register-visual__copy {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .register-layout {
    border-radius: 24px;
  }

  .register-layout__form {
    padding: 24px 18px;
  }

  .register-heading {
    margin-bottom: 20px;
  }

  .register-form {
    gap: 12px;
  }

  .register-layout__visual {
    display: none;
  }
}

/* Login */
.login-shell {
  padding-top: 32px;
}

.login-layout {
  grid-template-columns: minmax(0, 0.98fr) minmax(320px, 1.02fr);
  border-color: rgba(22, 32, 51, 0.08);
}

.login-layout__form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(34px, 4.5vw, 54px);
}

.login-heading {
  margin-bottom: 24px;
  text-align: center;
}

.login-title {
  font-size: clamp(2.35rem, 3.8vw, 3.25rem);
}

.login-form {
  gap: 16px;
}

.login-field {
  gap: 8px;
}

.login-input,
.login-field input {
  min-height: 58px;
  padding: 15px 18px;
  border-radius: 16px;
  font-size: 1rem;
}

.login-submit {
  min-height: 58px;
  margin-top: 6px;
  border-radius: 16px;
  font-size: 1rem;
}

.login-footer {
  margin-top: 20px;
}

.login-layout__visual {
  min-height: 100%;
  border-left: 1px solid rgba(50, 50, 50, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(255, 251, 239, 0.98) 100%);
}

.login-visual {
  align-items: center;
  justify-content: center;
  padding: clamp(32px, 4vw, 46px);
  background:
    radial-gradient(circle at 18% 20%, rgba(243, 198, 21, 0.12), transparent 30%),
    radial-gradient(circle at 84% 14%, rgba(243, 198, 21, 0.08), transparent 22%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.94) 0%, rgba(251, 248, 238, 0.96) 54%, rgba(255, 250, 235, 0.98) 100%);
}

.login-visual__watermark {
  inset: 50% auto auto 50%;
  width: min(84%, 430px);
  background-position: center;
  transform: translate(-50%, -50%);
  opacity: 0.3;
  filter: saturate(0.94) contrast(0.96);
}

@media (max-width: 991px) {
  .login-shell {
    padding-top: 24px;
  }

  .login-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .login-title {
    font-size: clamp(2.1rem, 10vw, 2.6rem);
  }

  .login-input,
  .login-field input,
  .login-submit {
    min-height: 54px;
  }
}

@media (max-width: 768px) {
  html,
  body {
    overflow-x: hidden;
  }

  body > .container {
    width: calc(100vw - 24px);
    max-width: none;
    margin-top: 8px !important;
    margin-left: auto;
    margin-right: auto;
    padding-left: 0;
    padding-right: 0;
    box-sizing: border-box;
  }

  body > .container:has(> .register-shell) {
    padding-left: 0;
    padding-right: 0;
  }

  .register-shell {
    min-height: auto;
    display: block;
    width: calc(100vw - 24px);
    max-width: none;
    margin-left: auto;
    margin-right: auto;
    padding: 6px 0 20px;
    border-radius: 0;
    background: #f6f7f9;
    overflow-x: hidden;
  }

  .register-layout,
  .login-layout {
    width: calc(100vw - 24px);
    max-width: none;
    margin: 0 auto;
    border-radius: 18px;
    box-sizing: border-box;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
  }

  .register-layout__form,
  .login-layout__form {
    padding: 24px 16px 22px;
  }

  .register-heading,
  .login-heading {
    margin-bottom: 18px;
  }

  .register-title,
  .login-title {
    font-size: 2.05rem;
    line-height: 1.08;
  }

  .register-form,
  .login-form {
    gap: 13px;
  }

  .register-field,
  .login-field {
    gap: 7px;
  }

  .register-field label,
  .login-field label {
    font-size: 0.95rem;
    line-height: 1.25;
  }

  .register-input,
  .register-field input,
  .login-input,
  .login-field input {
    min-height: 56px;
    padding: 15px 16px;
    border-radius: 12px;
    font-size: 16px;
  }

  .register-password-control .register-input,
  .register-password-control input {
    padding-right: 56px;
  }

  .register-password-toggle {
    width: 42px;
    height: 42px;
    right: 8px;
    border-radius: 10px;
  }

  .register-submit,
  .login-submit {
    min-height: 58px;
    margin-top: 4px;
    border-radius: 12px;
    font-size: 16px;
  }

  .register-footer,
  .login-footer {
    margin-top: 16px;
    font-size: 0.95rem;
    line-height: 1.35;
  }

  .register-help,
  .register-alert,
  .register-field__errors,
  .register-inline-note {
    border-radius: 10px;
    font-size: 0.88rem;
  }

  .login-shell {
    padding-top: 6px;
  }
}

/* ── Login con Google ─────────────────────────────────────────────────────
   Google exige su boton en blanco con el logo a color, asi que este no
   lleva el amarillo corporativo. Comparte alto, radio y tipografia con
   .register-submit para que los dos botones se vean de la misma familia. */
.login-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  box-sizing: border-box;
  padding: 12px 16px;
  border: 1px solid #d0d5dd;
  border-radius: 14px;
  background: #fff;
  color: #3c4043;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition: box-shadow 160ms ease, transform 160ms ease, border-color 160ms ease;
}

.login-google:hover,
.login-google:focus {
  border-color: #b9bfc9;
  box-shadow: 0 10px 22px rgba(16, 24, 40, 0.10);
  transform: translateY(-1px);
  color: #3c4043;
  text-decoration: none;
  outline: none;
}

.login-google:focus {
  box-shadow:
    0 10px 22px rgba(16, 24, 40, 0.10),
    0 0 0 4px rgba(243, 198, 21, 0.22);
}

.login-google:active { transform: translateY(0); }

.login-google__icon {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.login-separator {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: var(--register-muted, #667085);
  font-size: 0.85rem;
}

.login-separator::before,
.login-separator::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(16, 24, 40, 0.12);
}
