/* ============================================================
   LMG Bio Research — login.css v2
   Inspirado en Path Peptides: video fullscreen + card centrada
   Paleta: #000000 | #006495 | #0097D4 | #FFFFFF
   Fuentes: Rajdhani (display) · Barlow (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@300;400;500;600;700&family=Barlow:wght@300;400;500;600&display=swap');

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue       : #0097D4;
  --blue-dark  : #006495;
  --black      : #000000;
  --white      : #FFFFFF;
  --card-bg    : rgba(0, 0, 0, 0.72);
  --border     : rgba(0, 151, 212, 0.22);
  --border-dim : rgba(255, 255, 255, 0.10);
  --font-d     : 'Rajdhani', sans-serif;
  --font-b     : 'Barlow', sans-serif;
  --max-w      : 460px;
}

html, body {
  min-height: 100%;
  font-family: var(--font-b);
  -webkit-font-smoothing: antialiased;
  background: var(--black);
  color: var(--white);
}

/* ── Video de fondo ─────────────────────────────────────────── */
.bg-media {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.80;
}

/* Overlay oscuro sobre el video — más oscuro donde está el form (derecha) */
.bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.15) 0%,    /* izquierda: video visible */
    rgba(0, 0, 0, 0.45) 45%,   /* centro: transición suave */
    rgba(0, 0, 0, 0.75) 100%   /* derecha: oscuro bajo el form */
  );
}

/* ── Columna de contenido ───────────────────────────────────── */
.page-wrap {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: flex-end;          /* pega el contenido a la derecha */
  padding: 48px 6% 40px;          /* margen derecho generoso */
  box-sizing: border-box;
}

/* ── Logo superior ──────────────────────────────────────────── */
.top-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.top-logo__img {
  height: 56px;
  width: auto;
  display: block;
  object-fit: contain;
}

.top-logo__wordmark {
  font-family: var(--font-d);
  font-size: 36px;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--white);
  line-height: 1;
}

.top-logo__accent {
  color: var(--blue);
}

.top-logo__tagline {
  font-family: var(--font-b);
  font-size: 10px;
  letter-spacing: 2.5px;
  color: rgba(255, 255, 255, 0.3);
  text-transform: uppercase;
}

/* ── Tarjeta de login ───────────────────────────────────────── */
.login-card {
  width: 100%;
  max-width: var(--max-w);
  background: var(--card-bg);
  border: 1px solid var(--border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 36px 40px 44px;
  margin-bottom: 32px;

  /* Entrada suave */
  animation: cardFadeIn .5s ease both;
}

@keyframes cardFadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0);    }
}

.card-eyebrow {
  font-family: var(--font-b);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.50);
  letter-spacing: 0.3px;
  margin-bottom: 6px;
  line-height: 1.5;
}

.card-title {
  font-family: var(--font-d);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--white);
  text-transform: uppercase;
  margin-bottom: 28px;
  line-height: 1;
}

/* ── Alertas ────────────────────────────────────────────────── */
.alert {
  width: 100%;
  padding: 10px 14px;
  margin-bottom: 20px;
  font-size: 12.5px;
  letter-spacing: 0.4px;
  border-left: 2px solid;
  font-family: var(--font-b);
}
.alert--error   { background: rgba(206,17,38,.10); border-color: #CE1126; color: #ff7080; }
.alert--success { background: rgba(0,151,212,.10); border-color: var(--blue); color: var(--blue); }

/* ── Formulario ─────────────────────────────────────────────── */
.login-form { width: 100%; }

.field {
  margin-bottom: 22px;
  position: relative;
}

.field__label {
  display: block;
  font-family: var(--font-d);
  font-size: 10px;
  letter-spacing: 3px;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.field__input {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-dim);
  color: var(--white);
  font-size: 14.5px;
  font-family: var(--font-b);
  padding: 11px 14px;
  outline: none;
  border-radius: 0;
  transition: border-color .2s, background .2s;
  -webkit-appearance: none;
}

.field__input:focus {
  border-color: var(--blue);
  background: rgba(0, 151, 212, 0.05);
}

.field__input::placeholder {
  color: rgba(255, 255, 255, 0.22);
  font-size: 13px;
}

/* Password con botón de ojo */
.field__pass-wrap {
  position: relative;
}
.field__pass-wrap .field__input {
  padding-right: 42px;
}
.pass-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255,255,255,0.30);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  transition: color .2s;
}
.pass-toggle:hover { color: var(--blue); }

/* Select de país */
.field__select-wrap {
  position: relative;
}
.field__select {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-dim);
  color: var(--white);
  font-size: 14.5px;
  font-family: var(--font-b);
  padding: 11px 40px 11px 14px;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: border-color .2s;
}
.field__select:focus { border-color: var(--blue); }
.field__select option { background: #0a1520; color: var(--white); }

.select-chevron {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.35);
  pointer-events: none;
  display: flex;
  align-items: center;
}

.select-flag-preview {
  position: absolute;
  right: 32px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  pointer-events: none;
  z-index: 1;
}

/* ── Remember / Forgot ──────────────────────────────────────── */
.form-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 26px;
}

.remember-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.remember-checkbox {
  width: 14px;
  height: 14px;
  border: 1px solid rgba(0,100,149,.5);
  background: transparent;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition: border-color .2s;
}
.remember-checkbox:checked {
  border-color: var(--blue);
  background: var(--blue);
}
.remember-checkbox:checked::after {
  content: '';
  position: absolute;
  left: 3px; top: 1px;
  width: 5px; height: 8px;
  border: 1.5px solid white;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}

.remember-label {
  font-size: 12px;
  color: rgba(255,255,255,.60);
  letter-spacing: 0.5px;
}

.forgot-link {
  font-size: 12px;
  color: var(--blue);
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: opacity .2s;
  opacity: .85;
}
.forgot-link:hover { opacity: 1; }

/* ── Botón principal ─────────────────────────────────────────── */
.btn-signin {
  width: 100%;
  padding: 14px;
  background: var(--blue-dark);
  border: 1px solid var(--blue);
  color: var(--white);
  font-family: var(--font-d);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: background .25s, border-color .25s;
}
.btn-signin::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .28s ease;
  z-index: 0;
}
.btn-signin:hover::before { transform: scaleX(1); }
.btn-signin__text {
  position: relative;
  z-index: 1;
}
.btn-signin:disabled {
  opacity: .5;
  cursor: not-allowed;
}
.btn-signin:disabled::before { display: none; }

/* ── Bloque "Solicitar acceso" (debajo de la card) ──────────── */
/* Mismo concepto que Path Peptides: sección separada debajo del form */
.apply-block {
  width: 100%;
  max-width: var(--max-w);
  border: 1px solid var(--border-dim);
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 32px 40px;
  text-align: center;
  margin-bottom: 32px;
  animation: cardFadeIn .55s .1s ease both;
}

.apply-block__title {
  font-family: var(--font-d);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--white);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.apply-block__desc {
  font-size: 13px;
  color: rgba(255,255,255,0.48);
  line-height: 1.7;
  margin-bottom: 22px;
}

.btn-apply {
  display: inline-block;
  padding: 12px 32px;
  border: 1px solid rgba(255,255,255,0.20);
  color: var(--white);
  font-family: var(--font-d);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-decoration: none;
  transition: border-color .2s, background .2s;
  background: transparent;
  margin-bottom: 14px;
}
.btn-apply:hover {
  border-color: var(--blue);
  background: rgba(0,151,212,0.08);
}

.apply-block__question {
  font-size: 12px;
  color: rgba(255,255,255,0.30);
}
.apply-block__question a {
  color: var(--blue);
  text-decoration: none;
  transition: opacity .2s;
}
.apply-block__question a:hover { opacity: 0.75; }

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
  width: 100%;
  max-width: var(--max-w);
  text-align: center;
  padding-top: 8px;
  animation: cardFadeIn .6s .2s ease both;
}

.footer-badges {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 14px;
}
.footer-badge {
  border: 1px solid rgba(0,100,149,.35);
  padding: 3px 12px;
  font-family: var(--font-d);
  font-size: 9px;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 11px;
  color: rgba(0,151,212,0.45);
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: color .2s;
}
.footer-links a:hover { color: var(--blue); }
.footer-links span { color: rgba(255,255,255,0.15); font-size: 10px; }

.footer-copy {
  font-size: 10px;
  color: rgba(255,255,255,0.20);
  letter-spacing: 1px;
}

/* ── Inline errors ──────────────────────────────────────────── */
.inline-error {
  display: block;
  font-size: 11px;
  color: #ff7080;
  margin-top: 5px;
  letter-spacing: 0.4px;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 860px) {
  .page-wrap {
    align-items: center;   /* centrar en tablet/móvil */
    padding: 40px 20px 36px;
  }
}

@media (max-width: 520px) {
  .page-wrap     { padding: 36px 16px 32px; }
  .login-card    { padding: 32px 24px; }
  .apply-block   { padding: 26px 24px; }
  .top-logo__wordmark { font-size: 28px; }
  .card-title    { font-size: 22px; }
}

@media (max-width: 360px) {
  .login-card  { padding: 28px 18px; }
  .apply-block { padding: 22px 18px; }
}
