/* ============================================================
   Login estilo CIR — IL GIARDINO (marca propia)
   Solo la forma/diseño; el logo es el de IL GIARDINO.
   ============================================================ */

/* ---------- Fondo general ---------- */
.cl-vt-page {
  background:
    radial-gradient(900px 520px at 18% 8%, rgba(14, 74, 44, 0.55) 0%, transparent 62%),
    radial-gradient(900px 600px at 88% 92%, rgba(12, 40, 80, 0.55) 0%, transparent 60%),
    #070d18 !important;
}

/* ---------- Tarjeta contenedor ---------- */
.cl-vt-grid {
  width: 100% !important;
  max-width: 1080px !important;
  min-height: 0 !important;
  height: min(690px, calc(100dvh - 48px)) !important;
  border-radius: 28px !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55) !important;
  background: #0b1420 !important;
  overflow: hidden !important;
}

/* proporción de paneles como CIR (izquierda algo más ancha) */
@media (min-width: 901px) {
  .cl-vt-grid { grid-template-columns: 1.08fr 1fr !important; }
  .cl-vt-grid > .cl-vt-hero { grid-column: 1 / 2 !important; }
  .cl-vt-grid > .cl-vt-main { grid-column: 2 / 3 !important; }
}

/* ---------- Panel izquierdo ---------- */
.cl-vt-hero {
  position: relative !important;
  overflow: hidden !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  padding: 30px 34px 22px !important;
  background:
    radial-gradient(620px 420px at 22% 10%, rgba(16, 90, 52, 0.55) 0%, transparent 62%),
    linear-gradient(165deg, #0d1a2b 0%, #0a1220 55%, #0b1420 100%) !important;
}
.cl-vt-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 42px 42px;
  -webkit-mask-image: radial-gradient(circle at 28% 22%, #000 0%, transparent 74%);
  mask-image: radial-gradient(circle at 28% 22%, #000 0%, transparent 74%);
}
.cl-vt-hero > * { position: relative; z-index: 2; }

.cir-hero-top { display: flex; }
.cir-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.78);
  font: 700 10px/1 'Inter', 'Segoe UI', Arial, sans-serif;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  white-space: nowrap;
}
.cir-pill i {
  width: 6px; height: 6px; border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.18);
}

.cir-hero-mid {
  flex: 1;
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 8px 0 4px;
  min-height: 0;
}
.cir-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 0;
}
.cl-vt-hero-logo {
  width: auto !important;
  max-width: 100% !important;
  max-height: 142px !important;
  object-fit: contain !important;
  filter: drop-shadow(0 18px 42px rgba(6, 78, 44, 0.55)) !important;
}

.cir-tiles {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.cir-tile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 11px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.045);
}
.cir-tile-ico {
  flex: 0 0 auto;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  color: #8fe3b4;
}
.cir-tile-ico svg { width: 17px; height: 17px; }
.cir-tile b {
  display: block;
  color: #f1f5f9;
  font: 700 12px/1.25 'Inter', 'Segoe UI', Arial, sans-serif;
}
.cir-tile small {
  display: block;
  margin-top: 2px;
  color: rgba(226, 232, 240, 0.52);
  font: 400 10.5px/1.3 'Inter', 'Segoe UI', Arial, sans-serif;
}

.cir-hero-foot {
  text-align: center;
  padding-top: 12px;
  color: rgba(255, 255, 255, 0.38);
  font: 600 10px/1.4 'Inter', 'Segoe UI', Arial, sans-serif;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

/* ---------- Panel derecho ---------- */
.cl-vt-main {
  background: #ffffff !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 44px 48px !important;
}
.cl-vt-card {
  width: 100% !important;
  max-width: 400px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

/* Encabezado de la tarjeta */
.cl-vt-badge {
  display: inline-flex !important;
  align-items: center;
  gap: 7px;
  padding: 6px 12px !important;
  border-radius: 999px !important;
  background: #e9f6ef !important;
  color: #0b6b3a !important;
  font: 700 9.5px/1 'Inter', 'Segoe UI', Arial, sans-serif !important;
  letter-spacing: 0.13em !important;
  text-transform: uppercase !important;
  margin-bottom: 18px !important;
}
.cl-vt-badge svg { width: 13px; height: 13px; }

.cl-vt-title {
  font: 800 30px/1.15 'Inter', 'Segoe UI', Arial, sans-serif !important;
  color: #0f172a !important;
  letter-spacing: -0.02em !important;
  margin: 0 0 6px !important;
}
.cl-vt-sub {
  color: #64748b !important;
  font: 400 13.5px/1.5 'Inter', 'Segoe UI', Arial, sans-serif !important;
  margin: 0 0 26px !important;
}

/* ---------- Formulario ---------- */
.cl-vt-card form { margin: 0 !important; }
.cl-vt-card form > div { margin-bottom: 16px !important; }

.cl-vt-card form label {
  display: block !important;
  margin-bottom: 7px !important;
  color: #64748b !important;
  font: 700 10.5px/1 'Inter', 'Segoe UI', Arial, sans-serif !important;
  letter-spacing: 0.09em !important;
  text-transform: uppercase !important;
}

.cl-vt-card form input:not([type="checkbox"]) {
  width: 100% !important;
  height: 48px !important;
  border: 1.5px solid #dbe3ec !important;
  border-radius: 12px !important;
  background-color: #fbfdff !important;
  padding: 0 14px 0 43px !important;
  font: 400 14.5px/1.2 'Inter', 'Segoe UI', Arial, sans-serif !important;
  color: #0f172a !important;
  box-shadow: none !important;
  outline: none !important;
  transition: border-color .15s, box-shadow .15s !important;
}
.cl-vt-card form input[type="password"] { padding-left: 43px !important; padding-right: 44px !important; }
.cl-vt-card form input:not([type="checkbox"])::placeholder {
  color: #a3b0c2 !important;
  font-weight: 400 !important;
}
.cl-vt-card form input:not([type="checkbox"]):focus {
  border-color: #0f8a4a !important;
  box-shadow: 0 0 0 4px rgba(15, 138, 74, 0.13) !important;
}
.cl-vt-card form input[type="text"] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: 15px center !important;
}
.cl-vt-card form input[type="password"] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='18' height='11' x='3' y='11' rx='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: 15px center !important;
}
.cl-vt-card form input[type="password"]::-ms-reveal { display: none; }

/* ojito */
.cl-vt-card form button[type="button"] {
  color: #94a3b8 !important;
  background: transparent !important;
  border: none !important;
  font-size: 12px !important;
  font-weight: 500 !important;
}
.cl-vt-card form button[type="button"]:hover { color: #0f172a !important; }
.cl-vt-card form button[type="button"][aria-label] {
  position: absolute !important;
  right: 12px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  padding: 4px !important;
}

/* fila recordar / ayuda */
.cl-vt-card form div.cir-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  padding-top: 4px !important;
  margin-bottom: 18px !important;
}
.cl-vt-card form .cir-row label {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 0 !important;
  color: #52606f !important;
  font: 400 12.5px/1 'Inter', 'Segoe UI', Arial, sans-serif !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  white-space: nowrap !important;
  flex: 0 0 auto !important;
  cursor: pointer !important;
}
.cl-vt-card form .cir-row input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 17px !important;
  height: 17px !important;
  margin: 0 !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 5px !important;
  background: #fff !important;
  accent-color: #0f8a4a !important;
  cursor: pointer;
  position: relative;
  transition: background .15s, border-color .15s;
}
.cl-vt-card form .cir-row input[type="checkbox"]:checked {
  background: #0f8a4a !important;
  border-color: #0f8a4a !important;
}
.cl-vt-card form .cir-row input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 5px; top: 1.5px;
  width: 4px; height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.cir-help {
  flex: 1 1 auto;
  color: #7b8794;
  font: 400 11px/1.35 'Inter', 'Segoe UI', Arial, sans-serif;
  text-align: right;
  white-space: nowrap;
}

/* botón principal */
.cl-vt-card form button[type="submit"] {
  position: relative;
  width: 100% !important;
  height: 50px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  border: none !important;
  border-radius: 12px !important;
  background: linear-gradient(135deg, #12924e 0%, #0a5c33 100%) !important;
  color: #ffffff !important;
  font: 700 15px/1 'Inter', 'Segoe UI', Arial, sans-serif !important;
  letter-spacing: 0.01em !important;
  box-shadow: 0 12px 26px rgba(10, 92, 51, 0.32) !important;
  cursor: pointer !important;
  transition: transform .15s, box-shadow .15s, filter .15s !important;
}
.cl-vt-card form button[type="submit"]:hover:not(:disabled) {
  filter: brightness(1.05);
  box-shadow: 0 16px 32px rgba(10, 92, 51, 0.38) !important;
}
.cl-vt-card form button[type="submit"]::after {
  content: '';
  width: 17px; height: 17px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E") no-repeat center/contain;
}
.cl-vt-card form button[type="submit"]:disabled {
  background: linear-gradient(135deg, #12924e 0%, #0a5c33 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 12px 26px rgba(10, 92, 51, 0.22) !important;
  opacity: 0.92 !important;
  cursor: not-allowed !important;
}

/* notas al pie de la tarjeta */
.cir-notes {
  margin-top: 18px;
  text-align: center;
  color: #96a2b1;
  font: 400 11.5px/1.6 'Inter', 'Segoe UI', Arial, sans-serif;
}
.cir-notes .cir-sec {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #8a97a6;
}
.cir-notes .cir-sec svg { width: 13px; height: 13px; }
.cir-notes .cir-terms { color: #a8b3c2; font-size: 10.5px; margin-top: 8px; }
.cir-notes .cir-terms b { color: #64748b; font-weight: 600; }

/* botón instalar app */
.cir-install {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 99999;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #12924e, #0a5c33);
  color: #fff;
  font: 700 12.5px/1 'Inter', 'Segoe UI', Arial, sans-serif;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  cursor: pointer;
}
.cir-install svg { width: 15px; height: 15px; }

/* sin espacio suficiente al costado, no tapar la tarjeta */
@media (max-width: 1420px) {
  .cir-install { display: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .cl-vt-grid {
    grid-template-columns: 1fr !important;
    height: auto !important;
    max-width: 460px !important;
  }
  .cl-vt-hero { padding: 20px 20px 16px !important; }
  .cl-vt-hero-logo { max-height: 78px !important; }
  .cir-tiles { display: none; }
  .cir-hero-foot { display: none; }
  .cir-hero-mid { padding: 4px 0 6px; }
  .cl-vt-card form div.cir-row { flex-wrap: wrap; row-gap: 6px; }
  .cir-help { flex-basis: 100%; text-align: left; white-space: normal; font-size: 10.5px; }
  .cl-vt-main { padding: 28px 22px 32px !important; }
  .cl-vt-title { font-size: 26px !important; }
  .cir-install { left: 12px; bottom: 12px; }
}
