/* =========================================================
   VALROCA · PORTAL DE CLIENTES
   REENVÍO DE CORREO DE VERIFICACIÓN
   ========================================================= */

:root {
  --rt-blue: #1e55a3;
  --rt-blue-dark: #102e63;
  --rt-blue-deep: #07172f;

  --rt-green: #31a836;
  --rt-green-hover: #38b83e;

  --rt-white: #ffffff;
  --rt-background: #f4f8fb;

  --rt-text: #162033;
  --rt-muted: #667085;

  --rt-border: #d7e0ea;
  --rt-border-hover: #aab7c7;
  --rt-focus: rgba(30, 85, 163, 0.18);

  --rt-radius-large: 28px;
  --rt-radius-medium: 16px;
  --rt-radius-small: 12px;

  --rt-shadow: 0 24px 65px rgba(7, 23, 47, 0.13);
}

/* =========================================================
   BASE
   ========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;

  color: var(--rt-text);

  background: radial-gradient(
      circle at 12% 15%,
      rgba(30, 85, 163, 0.08),
      transparent 32%
    ),
    radial-gradient(circle at 90% 85%, rgba(49, 168, 54, 0.07), transparent 28%),
    var(--rt-background);

  font-family: "Inter", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

a {
  color: var(--rt-blue);
  text-decoration: none;

  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: var(--rt-blue-dark);
  text-decoration: none;
}

/* =========================================================
   PÁGINA
   ========================================================= */

.rt-page {
  position: relative;

  display: flex;
  align-items: center;

  min-height: 100vh;

  padding: 32px 20px;

  overflow: hidden;
}

.rt-page::before {
  content: "";

  position: fixed;
  top: -180px;
  right: -180px;

  width: 420px;
  height: 420px;

  border: 75px solid rgba(30, 85, 163, 0.035);
  border-radius: 50%;

  pointer-events: none;
}

.rt-page::after {
  content: "";

  position: fixed;
  bottom: -230px;
  left: -160px;

  width: 470px;
  height: 470px;

  border: 90px solid rgba(49, 168, 54, 0.03);
  border-radius: 50%;

  pointer-events: none;
}

.rt-container {
  position: relative;
  z-index: 1;

  width: 100%;
  max-width: 1180px;

  margin: 0 auto;
}

.rt-card {
  overflow: hidden;

  background: var(--rt-white);

  border: 1px solid rgba(30, 85, 163, 0.08);
  border-radius: var(--rt-radius-large);

  box-shadow: var(--rt-shadow);
}

.rt-layout {
  display: flex;

  min-height: 700px;
}

/* =========================================================
   PANEL VISUAL
   ========================================================= */

.rt-visual {
  position: relative;

  display: flex;
  flex: 0 0 46%;

  min-width: 0;

  overflow: hidden;

  background: var(--rt-blue-deep);
}

.rt-visual-image {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;
}

.rt-visual-overlay {
  position: absolute;
  inset: 0;

  background: linear-gradient(
    180deg,
    rgba(7, 23, 47, 0.22) 0%,
    rgba(7, 23, 47, 0.84) 100%
  );
}

.rt-visual-content {
  position: relative;
  z-index: 2;

  display: flex;
  flex-direction: column;
  justify-content: flex-end;

  width: 100%;

  padding: 52px;

  color: var(--rt-white);
}

.rt-portal-badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 8px;

  margin-bottom: 22px;
  padding: 9px 15px;

  color: var(--rt-white);
  background: rgba(255, 255, 255, 0.13);

  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;

  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;

  backdrop-filter: blur(8px);
}

.rt-portal-badge i {
  font-size: 17px;
}

.rt-visual-title {
  max-width: 480px;

  margin: 0 0 16px;

  color: var(--rt-white);

  font-family: "Montserrat", Arial, sans-serif;
  font-size: clamp(34px, 4vw, 49px);
  font-weight: 600;
  line-height: 1.08;
}

.rt-visual-description {
  max-width: 450px;

  margin: 0;

  color: rgba(255, 255, 255, 0.84);

  font-size: 17px;
  line-height: 1.65;
}

.rt-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;

  margin-top: 30px;
}

.rt-benefit {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 9px 13px;

  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.1);

  border-radius: 999px;

  font-size: 13px;
}

.rt-benefit i {
  color: #68d86d;

  font-size: 16px;
}

/* =========================================================
   PANEL DEL FORMULARIO
   ========================================================= */

.rt-form-panel {
  display: flex;
  flex: 1;
  align-items: center;

  min-width: 0;

  padding: 52px 68px;
}

.rt-form-content {
  width: 100%;
  max-width: 470px;

  margin: 0 auto;
}

.rt-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;

  margin-bottom: 38px;
}

.rt-logo {
  display: block;

  width: auto;
  max-width: 190px;
  max-height: 62px;

  object-fit: contain;
}

.rt-security-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;

  color: var(--rt-muted);

  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.rt-security-label i {
  color: var(--rt-green);

  font-size: 16px;
}

.rt-eyebrow {
  margin: 0 0 9px;

  color: var(--rt-blue);

  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.rt-title {
  margin: 0 0 12px;

  color: var(--rt-text);

  font-family: "Montserrat", Arial, sans-serif;
  font-size: clamp(30px, 4vw, 40px);
  font-weight: 600;
  line-height: 1.15;
}

.rt-description {
  margin: 0 0 30px;

  color: var(--rt-muted);

  font-size: 16px;
  line-height: 1.65;
}

/* =========================================================
   CAMPOS
   ========================================================= */

.rt-form-group {
  margin: 0 0 22px;
}

.rt-label {
  display: flex;
  align-items: center;
  justify-content: space-between;

  margin: 0 0 9px;

  color: var(--rt-text);

  font-size: 14px;
  font-weight: 600;
}

.rt-label-help {
  color: var(--rt-muted);

  font-size: 12px;
  font-weight: 400;
}

.rt-input-wrapper {
  position: relative;
}

.rt-input-icon {
  position: absolute;
  top: 50%;
  left: 17px;
  z-index: 2;

  color: #8190a5;

  font-size: 20px;

  transform: translateY(-50%);

  pointer-events: none;
}

.rt-input {
  display: block;

  width: 100%;
  height: 56px;

  margin: 0;
  padding: 13px 17px 13px 49px;

  color: var(--rt-text);
  background: var(--rt-white);

  border: 1px solid var(--rt-border);
  border-radius: var(--rt-radius-small);

  outline: none;

  font-family: "Inter", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.4;

  transition: border-color 0.2s ease, box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.rt-input::placeholder {
  color: #98a2b3;
}

.rt-input:hover {
  border-color: var(--rt-border-hover);
}

.rt-input:focus {
  border-color: var(--rt-blue);

  box-shadow: 0 0 0 4px var(--rt-focus);
}

/* Sobrescribir Bootstrap y main.css */

.rt-page .rt-input.form-control {
  height: 56px;
  margin: 0;

  background-color: var(--rt-white);
  border-radius: var(--rt-radius-small);
}

.rt-page .rt-input.form-control:focus {
  background-color: var(--rt-white);
  border-color: var(--rt-blue);

  box-shadow: 0 0 0 4px var(--rt-focus);
}

/* =========================================================
   AVISO INFORMATIVO
   ========================================================= */

.rt-info-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;

  margin: 4px 0 26px;
  padding: 15px 16px;

  color: var(--rt-muted);
  background: rgba(30, 85, 163, 0.055);

  border-left: 3px solid var(--rt-blue);
  border-radius: 0 11px 11px 0;

  font-size: 12px;
  line-height: 1.55;
}

.rt-info-box i {
  flex: 0 0 auto;

  margin-top: 1px;

  color: var(--rt-blue);

  font-size: 18px;
}

/* =========================================================
   BOTÓN
   ========================================================= */

.rt-submit-area {
  margin-top: 28px;
}

.rt-submit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  width: 100%;
  min-height: 56px;

  margin: 0;
  padding: 14px 25px;

  color: var(--rt-white);
  background: var(--rt-green);

  border: 1px solid var(--rt-green);
  border-radius: 999px;

  box-shadow: 0 12px 24px rgba(49, 168, 54, 0.2);

  font-family: "Inter", Arial, sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;

  cursor: pointer;

  transition: background-color 0.2s ease, border-color 0.2s ease,
    box-shadow 0.2s ease, transform 0.2s ease;
}

.rt-submit-button:hover {
  color: var(--rt-white);
  background: var(--rt-green-hover);
  border-color: var(--rt-green-hover);

  box-shadow: 0 15px 30px rgba(49, 168, 54, 0.25);

  transform: translateY(-1px);
}

.rt-submit-button:focus {
  outline: none;

  box-shadow: 0 0 0 4px rgba(49, 168, 54, 0.18),
    0 12px 24px rgba(49, 168, 54, 0.2);
}

.rt-submit-button:active {
  transform: translateY(0);
}

.rt-submit-button i {
  font-size: 19px;
}

/* =========================================================
   MENSAJES
   ========================================================= */

.rt-messages {
  margin-top: 22px;
}

.rt-messages:empty {
  display: none;
}

.rt-messages .alert {
  margin: 0 0 12px;

  border: 0;
  border-radius: 12px;

  font-size: 14px;
}

/* =========================================================
   REGRESAR AL LOGIN
   ========================================================= */

.rt-back-login {
  margin: 26px 0 0;

  color: var(--rt-muted);

  font-size: 14px;
  text-align: center;
}

.rt-back-login a {
  display: inline-flex;
  align-items: center;
  gap: 5px;

  font-weight: 700;
}

/* =========================================================
   FOOTER
   ========================================================= */

.rt-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 18px;

  margin-top: 34px;

  color: var(--rt-muted);

  font-size: 12px;
  text-align: center;
}

.rt-footer a {
  color: var(--rt-muted);
}

.rt-footer a:hover {
  color: var(--rt-blue);
}

.rt-footer-divider {
  width: 4px;
  height: 4px;

  background: #bcc5d0;

  border-radius: 50%;
}

/* =========================================================
   LOADER
   ========================================================= */

#divLoading {
  position: fixed;
  inset: 0;
  z-index: 99999;

  display: none;
  align-items: center;
  justify-content: center;

  background: rgba(7, 23, 47, 0.78);

  backdrop-filter: blur(4px);
}

#divLoading > div {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 82px;
  height: 82px;

  background: var(--rt-white);

  border-radius: 22px;

  box-shadow: var(--rt-shadow);
}

#divLoading img {
  width: 44px;
  height: 44px;
}

#divLoading.show,
#divLoading.active,
#divLoading.visible {
  display: flex;
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 991.98px) {
  .rt-page {
    padding: 24px;
  }

  .rt-layout {
    min-height: 680px;
  }

  .rt-visual {
    flex-basis: 41%;
  }

  .rt-visual-content {
    padding: 36px;
  }

  .rt-form-panel {
    padding: 44px 38px;
  }

  .rt-benefits {
    display: none;
  }
}

/* =========================================================
   MÓVIL
   ========================================================= */

@media (max-width: 767.98px) {
  .rt-page {
    align-items: flex-start;

    padding: 16px;
  }

  .rt-card {
    border-radius: 22px;
  }

  .rt-layout {
    display: block;

    min-height: auto;
  }

  .rt-visual {
    min-height: 240px;
  }

  .rt-visual-content {
    justify-content: flex-end;

    padding: 28px;
  }

  .rt-visual-title {
    margin-bottom: 8px;

    font-size: 29px;
  }

  .rt-visual-description {
    display: none;
  }

  .rt-portal-badge {
    margin-bottom: 12px;
  }

  .rt-form-panel {
    padding: 38px 28px;
  }

  .rt-brand {
    margin-bottom: 30px;
  }

  .rt-logo {
    max-width: 165px;
  }

  .rt-security-label {
    display: none;
  }
}

@media (max-width: 479.98px) {
  .rt-page {
    padding: 0;

    background: var(--rt-white);
  }

  .rt-page::before,
  .rt-page::after {
    display: none;
  }

  .rt-card {
    border: 0;
    border-radius: 0;

    box-shadow: none;
  }

  .rt-visual {
    min-height: 215px;
  }

  .rt-visual-content {
    padding: 23px;
  }

  .rt-portal-badge {
    padding: 7px 12px;

    font-size: 11px;
  }

  .rt-visual-title {
    font-size: 25px;
  }

  .rt-form-panel {
    padding: 32px 22px 38px;
  }

  .rt-title {
    font-size: 29px;
  }

  .rt-description {
    margin-bottom: 27px;

    font-size: 14px;
  }

  .rt-input,
  .rt-page .rt-input.form-control {
    height: 54px;
  }

  .rt-info-box {
    margin-bottom: 24px;
  }

  .rt-submit-area {
    margin-top: 26px;
  }

  .rt-footer {
    flex-direction: column;
    gap: 7px;
  }

  .rt-footer-divider {
    display: none;
  }
}

/* =========================================================
   ACCESIBILIDAD
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
