/* =========================================================
   LOGIN ADMIN — Split-screen con identidad E-Tech
   ========================================================= */

:root {
  --lg-primary: #1a2b4a;
  --lg-primary-light: #2d4a7c;
  --lg-accent: #ff6b35;
  --lg-accent-light: #ff8a5c;
  --lg-success: #10b981;
  --lg-text: #1e293b;
  --lg-muted: #64748b;
  --lg-border: #e2e8f0;
  --lg-bg: #f8fafc;
  --lg-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--lg-font);
  background: var(--lg-bg);
  color: var(--lg-text);
  -webkit-font-smoothing: antialiased;
  min-height: 100%;
}

/* =========================================================
   LAYOUT
   ========================================================= */
.lg-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

/* =========================================================
   PANEL IZQUIERDO — E-TECH (PRODUCTO)
   ========================================================= */
.lg-brand-panel {
  background: linear-gradient(150deg, #0f172a 0%, #1a2b4a 45%, #2d4a7c 100%);
  color: #fff;
  padding: 56px 64px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.lg-brand-panel::before {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(255, 107, 53, .28) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.lg-brand-panel::after {
  content: '';
  position: absolute;
  bottom: -140px; left: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(255, 107, 53, .22) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.lg-brand-panel .lg-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

.lg-brand-top {
  position: relative;
  z-index: 2;
}

/* Producto (ahora el título principal) */
.lg-brand-product {
  margin-top: 0;
}

.lg-brand-product h1 {
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.6px;
  margin: 0 0 8px;
  line-height: 1.1;
}

.lg-brand-product h1 span {
  background: linear-gradient(135deg, #ff6b35, #ff8a5c);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lg-brand-product p {
  font-size: .82rem;
  color: rgba(255, 255, 255, .6);
  margin: 0;
  line-height: 1.4;
}

.lg-brand-product p strong {
  color: rgba(255, 255, 255, .85);
  font-weight: 600;
}

/* =========================================================
   MIDDLE — features
   ========================================================= */
.lg-brand-middle {
  position: relative;
  z-index: 2;
  max-width: 460px;
}

.lg-brand-title {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.1px;
  margin: 0 0 18px;
}

.lg-brand-title span {
  background: linear-gradient(135deg, #ff6b35, #ff8a5c);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lg-brand-subtitle {
  font-size: 1rem;
  color: rgba(255, 255, 255, .68);
  line-height: 1.6;
  margin: 0 0 36px;
}

.lg-brand-features {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.lg-feature {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: .92rem;
  color: rgba(255, 255, 255, .85);
}

.lg-feature-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .08);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #ff8a5c; /* Naranja */
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, .08);
}

.lg-brand-bottom {
  position: relative;
  z-index: 2;
  font-size: .78rem;
  color: rgba(255, 255, 255, .45);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding-top: 20px;
  margin-top: 24px;
}

.lg-brand-bottom-vendor {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.3;
}

.lg-brand-bottom-vendor strong {
  color: rgba(255, 255, 255, .9);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: -.1px;
}

.lg-brand-bottom-vendor small {
  color: rgba(255, 255, 255, .5);
  font-weight: 500;
  font-size: .7rem;
}

/* =========================================================
   PANEL DERECHO — FORMULARIO + GIMNASIO
   ========================================================= */
.lg-form-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: #fff;
}

.lg-form-wrapper {
  width: 100%;
  max-width: 400px;
}

/* Branding del gimnasio */
.lg-gym-brand {
  text-align: center;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--lg-border);
}

.lg-gym-logo {
  max-height: 72px;
  max-width: 200px;
  width: auto;
  display: block;
  margin: 0 auto 10px;
  object-fit: contain;
}

.lg-gym-logo-fallback {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1a2b4a, #2d4a7c);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 auto 10px;
  box-shadow: 0 6px 20px rgba(26, 43, 74, .25);
}

.lg-gym-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--lg-primary);
  letter-spacing: -.4px;
  margin: 0 0 4px;
  line-height: 1.2;
}

.lg-gym-sub {
  font-size: .82rem;
  color: var(--lg-muted);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: .5px;
  font-weight: 600;
}

/* Form header */
.lg-form-header {
  margin-bottom: 24px;
}

.lg-form-header h2 {
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--lg-primary);
  margin: 0 0 8px;
  letter-spacing: -.5px;
}

.lg-form-header p {
  color: var(--lg-muted);
  font-size: .9rem;
  margin: 0;
  line-height: 1.5;
}

/* Inputs */
.lg-form-group {
  margin-bottom: 18px;
}

.lg-form-label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 6px;
}

.lg-input-wrap {
  position: relative;
}

.lg-input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: .95rem;
  pointer-events: none;
  transition: color .2s;
}

.lg-input {
  width: 100%;
  padding: 14px 16px 14px 44px;
  border: 1.5px solid var(--lg-border);
  border-radius: 12px;
  font-size: .95rem;
  font-family: inherit;
  color: var(--lg-text);
  background: #f8fafc;
  transition: all .2s;
}

.lg-input:focus {
  outline: none;
  border-color: var(--lg-accent);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 107, 53, .1);
}

.lg-input-wrap:focus-within .lg-input-icon {
  color: var(--lg-accent);
}

.lg-input::placeholder { color: #94a3b8; }

/* Botón */
.lg-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 20px;
  border: none;
  border-radius: 12px;
  font-size: .95rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
}

.lg-btn-primary {
  background: linear-gradient(135deg, #ff6b35, #ff8a5c);
  color: #fff;
  box-shadow: 0 8px 24px rgba(255, 107, 53, .3);
  margin-top: 6px;
}

.lg-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(255, 107, 53, .4);
}

.lg-btn-primary:active { transform: translateY(0); }
.lg-btn-primary:disabled { opacity: .7; cursor: not-allowed; transform: none; }

/* Toggle password */
.lg-toggle-pass {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 8px;
  font-size: .95rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color .15s, background .15s;
}
.lg-toggle-pass:hover { color: var(--lg-primary); background: rgba(148, 163, 184, .1); }

/* Alerts */
.lg-alert {
  padding: 12px 16px;
  border-radius: 12px;
  font-size: .88rem;
  margin-bottom: 18px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.45;
}

.lg-alert-error { background: #fee2e2; color: #991b1b; }
.lg-alert-success { background: #d1fae5; color: #065f46; }
.lg-alert-info { background: #dbeafe; color: #1e40af; }

/* Divider */
.lg-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 24px 0 18px;
  color: #94a3b8;
  font-size: .8rem;
}

.lg-divider::before,
.lg-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--lg-border);
}

/* Link secundario */
.lg-link-socio {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 20px;
  border: 1.5px solid var(--lg-border);
  border-radius: 12px;
  background: #fff;
  color: var(--lg-primary);
  font-size: .92rem;
  font-weight: 600;
  text-decoration: none;
  transition: all .2s;
}

.lg-link-socio:hover {
  border-color: var(--lg-primary);
  background: #f8fafc;
  color: var(--lg-primary);
  transform: translateY(-1px);
}

.lg-link-socio i { color: var(--lg-accent); }

.lg-link-socio-inline {
  color: var(--lg-accent);
  font-weight: 600;
  text-decoration: none;
}
.lg-link-socio-inline:hover { text-decoration: underline; }

.lg-footer-text {
  text-align: center;
  margin-top: 24px;
  font-size: .8rem;
  color: #94a3b8;
}

.lg-secure {
  text-align: center;
  margin-top: 20px;
  font-size: .78rem;
  color: #94a3b8;
}
.lg-secure i { color: var(--lg-success); margin-right: 4px; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
  .lg-wrapper { grid-template-columns: 1fr; }

  .lg-brand-panel {
    padding: 40px 30px;
    min-height: 320px;
  }

  .lg-brand-title { font-size: 1.9rem; }
  .lg-brand-subtitle { font-size: .92rem; margin-bottom: 24px; }
  .lg-brand-features { display: none; }
  .lg-brand-bottom { margin-top: 20px; }
  .lg-brand-middle { margin-top: 24px; }

  .lg-form-panel { padding: 32px 24px 48px; }
  .lg-form-wrapper { max-width: 440px; }
}

@media (max-width: 480px) {
  .lg-brand-panel { padding: 30px 22px; min-height: 260px; }
  .lg-brand-title { font-size: 1.55rem; }
  .lg-form-header h2 { font-size: 1.35rem; }
  .lg-gym-logo { max-height: 56px; }
  .lg-gym-name { font-size: 1.15rem; }
}