/* ════════════════════════════════════════════════════════════
   TechPackr · Landing checkout modal
   Estilos del modal de auth que se inyecta al clicar un plan.
   Hereda paleta y tipografía de la landing.
   ════════════════════════════════════════════════════════════ */

.tlc-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: tlcFadeIn .18s ease both;
}
@keyframes tlcFadeIn { from { opacity: 0 } to { opacity: 1 } }

.tlc-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 10, 20, .72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.tlc-modal__box {
  position: relative;
  background: #fff;
  border-radius: 18px;
  padding: 32px 30px 26px;
  width: min(420px, 92vw);
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 24px 64px rgba(0, 0, 0, .35);
  animation: tlcSlideUp .25s cubic-bezier(.2, .9, .3, 1) both;
}
@keyframes tlcSlideUp { from { transform: translateY(20px); opacity: 0 } to { transform: translateY(0); opacity: 1 } }

.tlc-modal__close {
  position: absolute;
  top: 12px; right: 14px;
  width: 32px; height: 32px;
  border: none;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  color: #6b7280;
  cursor: pointer;
  border-radius: 8px;
  transition: background .15s;
}
.tlc-modal__close:hover { background: rgba(0, 0, 0, .06); color: #111; }

.tlc-modal__title {
  font-family: inherit;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
  color: #0e1019;
}
.tlc-modal__sub {
  font-size: 13.5px;
  color: #5b6072;
  margin: 0 0 20px;
}

/* Tabs login/register */
.tlc-tabs {
  display: flex;
  gap: 4px;
  background: #f3f4f8;
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 20px;
}
.tlc-tab {
  flex: 1;
  background: transparent;
  border: none;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
  border-radius: 7px;
  cursor: pointer;
  font-family: inherit;
  transition: .15s;
}
.tlc-tab--active {
  background: #fff;
  color: #0e1019;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
}

/* Form rows */
.tlc-row { margin-bottom: 12px; }
.tlc-row label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 4px;
}
.tlc-row input {
  width: 100%;
  font: inherit;
  font-size: 14px;
  padding: 10px 12px;
  border: 1px solid #d8dbe5;
  border-radius: 8px;
  background: #fafbfc;
  color: #0e1019;
  outline: none;
  transition: border-color .15s, background .15s;
  box-sizing: border-box;
}
.tlc-row input:focus {
  border-color: #14d9a0;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(20, 217, 160, .15);
}

.tlc-err {
  background: rgba(230, 57, 70, .08);
  border: 1px solid rgba(230, 57, 70, .25);
  color: #c1232f;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  margin: 6px 0 12px;
}

.tlc-submit {
  width: 100%;
  background: linear-gradient(135deg, #6c63ff, #14d9a0);
  color: #fff;
  border: none;
  padding: 12px 16px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  margin-top: 4px;
  font-family: inherit;
  transition: opacity .15s, transform .1s;
}
.tlc-submit:hover { opacity: .93; }
.tlc-submit:active { transform: scale(.985); }
.tlc-submit:disabled { opacity: .65; cursor: wait; }

/* "or" divider */
.tlc-or {
  position: relative;
  text-align: center;
  margin: 18px 0 14px;
  color: #9ca3af;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.tlc-or::before, .tlc-or::after {
  content: "";
  position: absolute; top: 50%;
  width: 42%;
  height: 1px;
  background: #e5e7eb;
}
.tlc-or::before { left: 0; }
.tlc-or::after  { right: 0; }

.tlc-google {
  width: 100%;
  background: #fff;
  border: 1px solid #d8dbe5;
  padding: 10px 14px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: #0e1019;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background .15s;
}
.tlc-google:hover { background: #f6f7fa; }

.tlc-legal {
  font-size: 11px;
  color: #9ca3af;
  text-align: center;
  margin: 16px 0 0;
  line-height: 1.5;
}
.tlc-legal a { color: #14d9a0; text-decoration: none; }
.tlc-legal a:hover { text-decoration: underline; }

/* Toast (sin modal abierto) */
.tlc-toast {
  position: fixed;
  bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #0e1019;
  color: #fff;
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  opacity: 0;
  pointer-events: none;
  transition: .25s;
  z-index: 10001;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .25);
  max-width: 90vw;
  text-align: center;
}
.tlc-toast--show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.tlc-toast--err {
  background: #c1232f;
}
