.idr-auth {
  --idr-red: #a30f0b;
  --idr-text: #101626;
  --idr-muted: #69707d;
  --idr-link: #087cff;
  display: grid;
  grid-template-columns: minmax(280px, 500px) minmax(320px, 470px);
  align-items: center;
  justify-content: center;
  gap: clamp(40px, 7vw, 96px);
  width: 100%;
  max-width: 1160px;
  margin: clamp(52px, 10vh, 140px) auto;
  padding: 0 22px;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--idr-text);
}

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

.idr-auth__media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  width: 100%;
  min-height: 280px;
  overflow: hidden;
  border-radius: 18px;
  background:
    radial-gradient(circle at 28% 12%, rgba(255, 255, 255, .42), transparent 28%),
    linear-gradient(120deg, rgba(255, 201, 214, .66), transparent 35%),
    linear-gradient(145deg, #d51d20 0%, #b90d0f 44%, #750806 100%);
  background-size: cover;
  background-position: center;
  box-shadow: inset 0 0 70px rgba(255, 255, 255, .12);
}

.idr-auth__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(110deg, rgba(255,255,255,.14), transparent 32%),
    radial-gradient(circle at 63% 74%, rgba(0,0,0,.28), transparent 20%);
  pointer-events: none;
}

.idr-auth__card {
  width: 100%;
  background: #fff;
  border: 0;
  border-radius: 6px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, .08);
}

.idr-auth__card--login {
  padding: 70px 50px 0;
  min-height: 434px; 
}

.idr-auth__card--register {
  padding: 58px 36px 58px;
}

.idr-auth__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 22px;
  row-gap: 20px;
}

.idr-auth__field {
  display: block;
  margin: 0;
  font-size: 14px;
  line-height: 1.2;
}

.idr-auth__field > span,
.idr-auth__field--radios > span {
  display: block;
  margin: 0 0 14px;
  color: var(--idr-text);
  font-weight: 400;
}

.idr-auth__field b {
  color: #e4241d;
  font-weight: 400;
}

.idr-auth__field input[type="text"],
.idr-auth__field input[type="email"],
.idr-auth__field input[type="tel"],
.idr-auth__field input[type="password"] {
  width: 100%;
  height: 38px;
  margin: 0;
  padding: 0 14px;
  border: 2px solid #161616;
  border-radius: 18px;
  background: #fff;
  color: var(--idr-text);
  font-size: 14px;
  line-height: 38px;
  outline: none;
  box-shadow: none;
}

.idr-auth__card--login .idr-auth__field input {
  height: 38px;
  border-radius: 3px;
}

.idr-auth__field input:focus {
  border-color: var(--idr-red);
}

.idr-auth__field input::placeholder {
  color: var(--idr-muted);
  opacity: 1;
}

.idr-auth__password {
  position: relative;
}

.idr-auth__password input {
  padding-right: 42px;
}

.idr-auth__toggle {
  position: absolute;
  right: 11px;
  bottom: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #3e4652;
  cursor: pointer;
}

.idr-auth__row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 36px;
  font-size: 14px;
}

.idr-auth__row--between {
  justify-content: space-between;
}

.idr-auth__check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--idr-text);
}

.idr-auth__check input {
  width: 13px;
  height: 13px;
  margin: 0;
}

.idr-auth a {
  color: var(--idr-link);
  text-decoration: none;
}

.idr-auth a:hover {
  text-decoration: underline;
}

.idr-auth__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 126px;
  height: 45px;
  padding: 0 24px;
  border: 0;
  border-radius: 20px;
  background: var(--idr-red);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.idr-auth__submit--wide {
  width: 100%;
  margin-top: 21px;
  border-radius: 4px;
}

.idr-auth__submit:disabled {
  opacity: .68;
  cursor: wait;
}

.idr-auth__bottom-link {
  display: block;
  margin-top: 58px;
  text-align: center;
  font-size: 14px;
}

.idr-auth__radios {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 38px;
  padding-left: 18px;
}

.idr-auth__radios label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 14px;
}

.idr-auth__radios input {
  width: 13px;
  height: 13px;
  margin: 0;
}

.idr-auth__register-actions {
  display: flex;
  align-items: center;
  gap: clamp(28px, 6vw, 74px);
  margin-top: 32px;
}

.idr-auth__interests {
  margin-top: 24px;
}

.idr-auth__interest-open[hidden] {
  display: none;
}

.idr-auth__interest-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  margin-top: 14px;
  padding: 0 18px;
  border: 1px solid var(--idr-red);
  border-radius: 20px;
  background: #fff;
  color: var(--idr-red);
  font-weight: 700;
  cursor: pointer;
}

.idr-auth__switch {
  display: inline-flex;
  align-items: center;
  margin: 0;
  cursor: pointer;
}

.idr-auth__switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.idr-auth__switch span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 7px 14px 7px 8px;
  border: 1px solid #d7dde6;
  border-radius: 999px;
  background: #fff;
  color: var(--idr-text);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  transition: border-color .18s ease, background-color .18s ease, color .18s ease, box-shadow .18s ease;
}

.idr-auth__switch span i {
  position: relative;
  flex: 0 0 42px;
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: #c5cbd4;
  transition: background-color .18s ease;
}

.idr-auth__switch span i::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(16, 22, 38, .22);
  transition: transform .18s ease;
}

.idr-auth__switch:hover span,
.idr-auth__switch:focus-within span {
  border-color: var(--idr-red);
  box-shadow: 0 0 0 3px rgba(163, 15, 11, .08);
}

.idr-auth__switch input:checked + span {
  border-color: var(--idr-red);
  background: #fff7f7;
  color: var(--idr-red);
}

.idr-auth__switch input:checked + span i {
  background: #cf2424;
}

.idr-auth__switch input:checked + span i::after {
  transform: translateX(18px);
}

.idr-auth__modal[hidden] {
  display: none;
}

.idr-auth__modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(10, 14, 23, .62);
}

.idr-auth__modal-panel {
  position: relative;
  width: min(760px, 100%);
  max-height: min(82vh, 760px);
  padding: 28px;
  overflow: auto;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .22);
}

.idr-auth__modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  color: #1c2430;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.idr-auth__interest-list {
  display: grid;
  gap: 14px;
  padding-top: 14px;
}

.idr-auth__interest-panel {
  min-width: 0;
}

.idr-auth__interest-panel-title {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 46px;
  padding: 12px 46px 12px 18px;
  border: 1px solid #ead5d5;
  border-radius: 8px;
  background: #fff;
  color: var(--idr-text);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(112, 20, 20, .05);
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.idr-auth__interest-panel-title::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--idr-red);
  border-bottom: 2px solid var(--idr-red);
  transform: translateY(-65%) rotate(45deg);
  transition: transform .18s ease;
}

.idr-auth__interest-panel-title:hover,
.idr-auth__interest-panel-title[aria-expanded="true"] {
  border-color: #d98a8a;
  background: #fffafa;
  box-shadow: 0 10px 26px rgba(112, 20, 20, .1);
}

.idr-auth__interest-panel-title[aria-expanded="true"]::after {
  transform: translateY(-35%) rotate(225deg);
}

.idr-auth__interest-panel-body {
  display: grid;
  gap: 12px;
  padding: 14px 0 2px;
}

.idr-auth__interest-panel-body[hidden] {
  display: none;
}

.idr-auth__interest-group {
  border-bottom: 1px solid #edf0f4;
  padding-bottom: 14px;
}

.idr-auth__interest-children {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px 12px;
  margin-top: 12px;
}

.idr-auth__interest-choice {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 10px 14px;
  border: 1px solid #d7dde6;
  border-radius: 8px;
  background: #fff;
  color: var(--idr-text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  cursor: pointer;
  transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease, color .18s ease;
}

.idr-auth__interest-choice--parent {
  max-width: 420px;
}

.idr-auth__interest-choice--child {
  font-size: 13px;
  font-weight: 500;
}

.idr-auth__interest-row-list {
  display: grid;
  gap: 10px;
}

.idr-auth__interest-choice--row {
  min-height: 52px;
}

.idr-auth__interest-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.idr-auth__interest-choice i {
  position: relative;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  border: 2px solid #aeb7c4;
  border-radius: 50%;
  background: #fff;
}

.idr-auth__interest-choice i::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 6px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  opacity: 0;
  transform: rotate(45deg);
}

.idr-auth__interest-choice:hover,
.idr-auth__interest-choice:focus-within {
  border-color: var(--idr-red);
  box-shadow: 0 0 0 3px rgba(163, 15, 11, .08);
}

.idr-auth__interest-choice input:checked ~ i {
  border-color: #cf2424;
  background: #cf2424;
}

.idr-auth__interest-choice input:checked ~ i::after {
  opacity: 1;
}

.idr-auth__interest-choice input:checked ~ span {
  color: var(--idr-text);
}

.idr-auth__interest-choice.is-selected,
.idr-auth__interest-choice:has(input:checked) {
  border-color: #d9a0a0;
  background: #fff7f7;
  box-shadow: inset 0 0 0 1px rgba(207, 36, 36, .10);
}

.idr-auth__modal-done {
  margin-top: 20px;
}

.idr-auth__message,
.idr-auth__logged {
  width: 100%;
  margin: 0 0 20px;
  padding: 12px 14px;
  border-radius: 6px;
  background: #fff7e4;
  color: #573b00;
  font-size: 14px;
  line-height: 1.4;
}

.idr-auth__message--error {
  background: #fff0f0;
  color: #8d130f;
}

.idr-auth__logged {
  max-width: 520px;
  margin: 60px auto;
  text-align: center;
}

@media (max-width: 980px) {
  .idr-auth {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    max-width: 620px;
    margin: 36px auto 64px;
  }

  .idr-auth__media {
    max-width: 420px;
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  .idr-auth {
    padding: 0 16px;
  }

  .idr-auth__media {
    min-height: 210px;
    border-radius: 14px;
  }

  .idr-auth__card--login,
  .idr-auth__card--register {
    min-height: 0;
    padding: 30px 20px;
  }

  .idr-auth__grid {
    grid-template-columns: 1fr;
    row-gap: 18px;
  }

  .idr-auth__row--between,
  .idr-auth__register-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 18px;
  }

  .idr-auth__submit,
  .idr-auth__submit--wide {
    width: 100%;
  }

  .idr-auth__bottom-link {
    margin-top: 26px;
  }
}

/* Shortcodes auth: solo formulario. Divi maneja el layout externo. */
.idr-auth.idr-auth--form-only{
  display:block;
  max-width:520px;
  margin:clamp(32px, 7vh, 90px) auto;
  padding:0;
}
.idr-auth.idr-auth--register.idr-auth--form-only{
  max-width:560px;
}
.idr-auth.idr-auth--form-only .idr-auth__card{
  width:100%;
}.idr-auth.idr-auth--form-only .idr-auth__grid{
  grid-template-columns:repeat(auto-fit,minmax(210px,1fr));
}
.idr-auth.idr-auth--form-only .idr-auth__register-actions{
  justify-content:space-between;
  flex-wrap:wrap;
}
.idr-auth.idr-auth--form-only .idr-auth__register-actions a{
  overflow-wrap:anywhere;
}
