.novara-auth-shell,
.novara-auth-shell * {
  box-sizing: border-box;
}

.novara-auth-shell {
  --novara-blue: #1f68ff;
  --novara-blue-bright: #59a4ff;
  --novara-red: #ff2645;
  --novara-ink: #05070d;
  --novara-panel: rgba(8, 13, 25, .85);
  --novara-text: #f5f7ff;
  --novara-muted: #a9b2c7;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  max-width: 620px;
  min-height: 840px;
  margin: 0 auto;
  padding: 48px 18px 34px;
  color: var(--novara-text);
  background:
    radial-gradient(circle at 50% 10%, rgba(34, 76, 168, .15), transparent 28%),
    radial-gradient(circle at 90% 60%, rgba(255, 38, 69, .11), transparent 31%),
    linear-gradient(160deg, #050912 0%, #03050b 48%, #0d0710 100%);
  border-radius: 28px;
  box-shadow: 0 22px 70px rgba(0,0,0,.42);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.novara-auth-shell::before,
.novara-auth-shell::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 760px;
  height: 760px;
  border: 1.5px solid rgba(51, 123, 255, .62);
  border-radius: 50%;
  filter: drop-shadow(0 0 11px rgba(31, 104, 255, .48));
  pointer-events: none;
}

.novara-auth-shell::before {
  left: -555px;
  top: -188px;
}

.novara-auth-shell::after {
  right: -590px;
  top: -120px;
  border-color: rgba(255, 43, 70, .62);
  filter: drop-shadow(0 0 11px rgba(255, 38, 69, .48));
}

.novara-auth-orbit {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  opacity: .55;
}

.novara-auth-orbit-blue {
  width: 360px;
  height: 520px;
  left: -232px;
  bottom: -74px;
  border: 2px solid rgba(34, 112, 255, .36);
  border-radius: 50%;
  transform: rotate(22deg);
  box-shadow: 0 0 26px rgba(34, 112, 255, .26);
}

.novara-auth-orbit-red {
  width: 360px;
  height: 520px;
  right: -235px;
  bottom: -69px;
  border: 2px solid rgba(255, 36, 69, .32);
  border-radius: 50%;
  transform: rotate(-22deg);
  box-shadow: 0 0 26px rgba(255, 36, 69, .22);
}

.novara-auth-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.novara-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  margin: 0 auto 26px;
  text-align: center;
}

.novara-brand-logo {
  display: block;
  width: auto;
  max-width: min(250px, 70vw);
  max-height: 155px;
  object-fit: contain;
  filter: drop-shadow(0 13px 22px rgba(0, 0, 0, .45));
}

.novara-fallback-logo {
  position: relative;
  width: 74px;
  height: 74px;
  margin-bottom: 13px;
  transform: rotate(45deg);
}

.novara-fallback-logo span {
  position: absolute;
  width: 46px;
  height: 20px;
  border-radius: 2px;
  box-shadow: 0 8px 16px rgba(0,0,0,.35);
}

.novara-fallback-red {
  left: 4px;
  top: 27px;
  background: linear-gradient(135deg, #ff3a4d, #8f0b1d);
  transform: rotate(-45deg) translateY(-12px);
}

.novara-fallback-blue {
  right: 2px;
  bottom: 18px;
  background: linear-gradient(135deg, #3a9cff, #123a99);
  transform: rotate(45deg) translateY(-12px);
}

.novara-brand-wordmark {
  color: #f7f8ff;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: .33em;
  padding-left: .33em;
  text-shadow: 0 3px 12px rgba(0,0,0,.6);
}

.novara-auth-card {
  position: relative;
  overflow: hidden;
  padding: 34px 28px 28px;
  background: linear-gradient(140deg, rgba(12, 20, 38, .92), rgba(8, 9, 17, .91));
  border: 1px solid rgba(153, 169, 216, .22);
  border-left-color: rgba(31, 104, 255, .9);
  border-right-color: rgba(255, 38, 69, .85);
  border-radius: 30px;
  box-shadow:
    -10px 0 25px rgba(31, 104, 255, .13),
    10px 0 28px rgba(255, 38, 69, .12),
    0 23px 48px rgba(0,0,0,.38),
    inset 0 1px 0 rgba(255,255,255,.06);
  backdrop-filter: blur(16px);
}

.novara-auth-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(112deg, rgba(75, 141, 255, .06), transparent 38%, transparent 62%, rgba(255, 45, 70, .07));
  pointer-events: none;
}

.novara-auth-heading,
.novara-auth-form,
.novara-auth-divider,
.novara-auth-switch,
.novara-auth-notice {
  position: relative;
  z-index: 1;
}

.novara-auth-heading {
  margin-bottom: 28px;
  text-align: center;
}

.novara-auth-heading h2 {
  margin: 0 0 10px !important;
  color: #fff !important;
  font-size: clamp(29px, 7.2vw, 38px) !important;
  line-height: 1.1 !important;
  font-weight: 650 !important;
  letter-spacing: -.04em !important;
}

.novara-auth-heading p {
  max-width: 315px;
  margin: 0 auto !important;
  color: var(--novara-muted) !important;
  font-size: 16px !important;
  line-height: 1.52 !important;
}

.novara-auth-heading p strong {
  font-weight: 600;
  background: linear-gradient(90deg, var(--novara-red), #d63aaf 52%, var(--novara-blue-bright));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.novara-auth-form {
  display: grid;
  gap: 14px;
}

.novara-field {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 63px;
  padding: 0 15px 0 58px;
  background: rgba(9, 13, 26, .66);
  border: 1px solid rgba(177, 190, 223, .22);
  border-radius: 15px;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.novara-field:focus-within {
  border-color: rgba(76, 142, 255, .85);
  box-shadow: 0 0 0 3px rgba(31, 104, 255, .12), inset 0 1px 0 rgba(255,255,255,.03);
  transform: translateY(-1px);
}

.novara-field-icon {
  position: absolute;
  left: 19px;
  top: 50%;
  display: flex;
  width: 25px;
  height: 25px;
  transform: translateY(-50%);
}

.novara-field-icon svg,
.novara-password-toggle svg {
  width: 100%;
  height: 100%;
}

.novara-icon-blue { color: #2e80ff; }
.novara-icon-red { color: #ff3b55; }

.novara-field input[type="text"],
.novara-field input[type="email"],
.novara-field input[type="tel"],
.novara-field input[type="password"] {
  width: 100% !important;
  min-width: 0;
  height: 61px !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #f3f6ff !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  font: inherit !important;
  font-size: 17px !important;
  line-height: 1 !important;
}

.novara-field input::placeholder {
  color: #aeb7cc !important;
  opacity: .92;
}

.novara-password-field {
  padding-right: 58px;
}

.novara-password-toggle {
  position: absolute;
  right: 15px;
  top: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 31px;
  height: 31px;
  margin: 0 !important;
  padding: 4px !important;
  color: #98a1b8;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  cursor: pointer;
  transform: translateY(-50%);
}

.novara-password-toggle:hover,
.novara-password-toggle:focus {
  color: #fff;
  outline: none;
}

.novara-remember {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: -1px 0 2px;
  color: #b4bdd0;
  font-size: 14px;
  cursor: pointer;
}

.novara-remember input {
  width: 16px;
  height: 16px;
  accent-color: #276eff;
}

.novara-primary-button {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100% !important;
  min-height: 62px;
  margin: 5px 0 0 !important;
  padding: 14px 20px !important;
  color: #fff !important;
  background: linear-gradient(101deg, #214cff 0%, #5935d7 35%, #cd275c 68%, #f02237 100%) !important;
  border: 1px solid rgba(255, 255, 255, .28) !important;
  border-radius: 15px !important;
  box-shadow: 0 8px 24px rgba(31, 73, 255, .2), 0 8px 25px rgba(255, 38, 69, .18), inset 0 1px 0 rgba(255,255,255,.22) !important;
  font: inherit !important;
  font-size: 20px !important;
  font-weight: 600 !important;
  line-height: 1.1 !important;
  text-decoration: none !important;
  cursor: pointer;
  transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}

.novara-primary-button:hover,
.novara-primary-button:focus {
  color: #fff !important;
  filter: brightness(1.08);
  transform: translateY(-2px);
  box-shadow: 0 13px 29px rgba(31, 73, 255, .27), 0 14px 31px rgba(255, 38, 69, .25), inset 0 1px 0 rgba(255,255,255,.25) !important;
  outline: none;
}

.novara-button-arrow {
  margin-left: auto;
  font-size: 37px;
  font-weight: 300;
  line-height: .5;
}

.novara-auth-divider {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 26px 0 19px;
  color: #b7bfce;
  font-size: 18px;
}

.novara-auth-divider::before,
.novara-auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(168,181,217,.08), rgba(168,181,217,.5));
}

.novara-auth-divider::after {
  background: linear-gradient(90deg, rgba(168,181,217,.5), rgba(168,181,217,.08));
}

.novara-auth-switch {
  margin: 0 !important;
  color: #b5becf !important;
  font-size: 16px !important;
  text-align: center;
}

.novara-auth-switch a {
  background: linear-gradient(90deg, var(--novara-red), #d83fbd 52%, var(--novara-blue-bright));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  font-weight: 600;
  text-decoration: none !important;
}

.novara-auth-switch a span {
  color: #4f8bff;
  -webkit-text-fill-color: #4f8bff;
  padding-left: 4px;
  font-size: 22px;
  vertical-align: -2px;
}

.novara-auth-notice {
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 1px solid;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.45;
  text-align: center;
}

.novara-notice-success {
  color: #cdfad8;
  background: rgba(44, 156, 88, .13);
  border-color: rgba(69, 221, 124, .35);
}

.novara-notice-error {
  color: #ffd5d9;
  background: rgba(224, 46, 68, .14);
  border-color: rgba(255, 81, 103, .4);
}

.novara-logout-button {
  justify-content: space-between;
}

/* Ajuste móvil v1.2: tarjeta más ancha y cómoda en pantallas pequeñas. */
@media (max-width: 600px) {
  .novara-auth-shell {
    width: 100%;
    max-width: 620px;
    padding-left: 10px;
    padding-right: 10px;
  }

  .novara-auth-inner {
    max-width: 500px;
  }
}

@media (max-width: 480px) {
  .novara-auth-shell {
    max-width: 100%;
    min-height: 760px;
    padding: 34px 8px 25px;
    border-radius: 20px;
  }

  .novara-brand {
    min-height: 130px;
    margin-bottom: 18px;
  }

  .novara-brand-logo {
    max-height: 126px;
    max-width: 235px;
  }

  .novara-auth-card {
    padding: 28px 16px 24px;
    border-radius: 25px;
  }

  .novara-auth-heading {
    margin-bottom: 22px;
  }

  .novara-auth-heading p {
    font-size: 15px !important;
  }

  .novara-field {
    min-height: 59px;
    padding-left: 53px;
  }

  .novara-field input[type="text"],
  .novara-field input[type="email"],
  .novara-field input[type="tel"],
  .novara-field input[type="password"] {
    height: 57px !important;
    font-size: 16px !important;
  }

  .novara-field-icon { left: 16px; width: 23px; height: 23px; }
  .novara-primary-button { min-height: 58px; font-size: 18px !important; }
}

/* --- Novara 1.1: logos incluidos, sin fondo negro --- */
.novara-brand {
  position: relative;
  min-height: 178px;
  margin-bottom: 24px;
  overflow: visible;
}

.novara-brand::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 250px;
  height: 120px;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(47, 96, 210, .16), rgba(255, 40, 74, .08) 45%, transparent 72%);
  filter: blur(12px);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.novara-brand-logo {
  display: block !important;
  width: auto !important;
  height: auto !important;
  max-width: min(286px, 76vw) !important;
  max-height: 176px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  object-fit: contain !important;
  filter: drop-shadow(0 11px 20px rgba(0,0,0,.5)) !important;
}

.novara-brand--builtin-ring .novara-brand-logo {
  max-width: min(290px, 78vw) !important;
  max-height: 182px !important;
}

.novara-brand--builtin-geometric .novara-brand-logo {
  max-width: min(230px, 66vw) !important;
  max-height: 178px !important;
  filter: drop-shadow(0 14px 26px rgba(0,0,0,.52)) drop-shadow(0 0 12px rgba(41,104,255,.13)) !important;
}

.novara-brand--size-compact { min-height: 126px; margin-bottom: 17px; }
.novara-brand--size-compact .novara-brand-logo { max-height: 119px !important; max-width: min(190px, 58vw) !important; }
.novara-brand--size-compact.novara-brand--builtin-ring .novara-brand-logo { max-width: min(215px, 62vw) !important; }
.novara-brand--size-hero { min-height: 215px; margin-bottom: 29px; }
.novara-brand--size-hero .novara-brand-logo { max-height: 210px !important; max-width: min(330px, 84vw) !important; }
.novara-brand--size-hero.novara-brand--builtin-ring .novara-brand-logo { max-width: min(350px, 87vw) !important; }

@media (max-width: 420px) {
  .novara-brand { min-height: 145px; }
  .novara-brand-logo { max-height: 145px !important; }
  .novara-brand--builtin-geometric .novara-brand-logo { max-height: 142px !important; }
}

@media (max-width: 360px) {
  .novara-auth-shell { padding-left: 6px; padding-right: 6px; }
  .novara-auth-card { padding-left: 14px; padding-right: 14px; }
}


/* --- Novara 1.3: móvil extra ancho, independiente de la columna de Elementor --- */
/* En celular, el plugin se centra respecto de la pantalla y aprovecha casi todo el ancho,
   incluso cuando el shortcode esté dentro de una columna estrecha de Elementor. */
@media (max-width: 767px) {
  .novara-auth-shell {
    width: calc(100vw - 14px) !important;
    max-width: calc(100vw - 14px) !important;
    margin-left: 50% !important;
    margin-right: 0 !important;
    transform: translateX(-50%);
    padding-left: 9px !important;
    padding-right: 9px !important;
  }

  .novara-auth-inner {
    width: 100% !important;
    max-width: none !important;
  }

  .novara-auth-card {
    width: 100% !important;
    padding-left: 22px !important;
    padding-right: 22px !important;
  }
}

@media (max-width: 420px) {
  .novara-auth-shell {
    width: calc(100vw - 10px) !important;
    max-width: calc(100vw - 10px) !important;
    padding-left: 7px !important;
    padding-right: 7px !important;
  }

  .novara-auth-card {
    padding-left: 19px !important;
    padding-right: 19px !important;
  }
}
