/* ============================================================
   LOGIN — Sistema corporativo VIVOTEL SG
   Prefijo: lf-  |  Paleta navy #1b3a5c
   ============================================================ */

:root {
  --navy:       #1b3a5c;
  --navy-d:     #122944;
  --navy-soft:  #eef1f8;
  --blue:       #2563a8;
  --border:     #d1d9e6;
  --text:       #1c2b3a;
  --muted:      #6b7280;
  --surface:    #ffffff;
  --bg:         #f2f5f8;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0; padding: 0;
  background: var(--bg);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
}

/* ============================================================
   WRAPPER
   ============================================================ */
.login-wrapper {
  display: flex;
  min-height: 100vh;
}

/* ============================================================
   PANEL IZQUIERDO — Branding
   ============================================================ */
.branding-panel {
  flex: 1;
  background: linear-gradient(145deg, var(--navy) 0%, #243f6a 60%, #2563a8 100%);
  color: #fff;
  padding: 60px 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Círculo decorativo de fondo */
.branding-panel::before {
  content: '';
  position: absolute;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
  top: -100px; right: -120px;
  pointer-events: none;
}
.branding-panel::after {
  content: '';
  position: absolute;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: rgba(255,255,255,.03);
  bottom: -60px; left: -60px;
  pointer-events: none;
}

.branding-content {
  max-width: 400px;
  position: relative;
  z-index: 1;
}

.branding-logo img {
  width: 155px;
  margin-bottom: 28px;
  filter: brightness(0) invert(1);
  opacity: .92;
}

.branding-content h1 {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 14px;
  letter-spacing: -.02em;
}

.branding-content > p {
  font-size: 14.5px;
  margin-bottom: 32px;
  opacity: .8;
  line-height: 1.6;
}

/* Feature list */
.feature-list {
  list-style: none;
  padding: 0; margin: 0;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 14.5px;
  opacity: .9;
}

.feature-list i {
  font-size: 1.2rem;
  color: #93c5fd;
  flex-shrink: 0;
  width: 22px;
  text-align: center;
}

/* ============================================================
   PANEL DERECHO — Formulario
   ============================================================ */
.form-panel {
  flex: 1;
  background: var(--surface);
  padding: 60px 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 520px;
}

/* Header */
.form-header { margin-bottom: 2rem; }

.form-header-icon {
  width: 48px; height: 48px;
  background: var(--navy-soft);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: var(--navy);
  margin-bottom: .875rem;
}

.form-header h2 {
  font-size: 26px; font-weight: 700;
  color: var(--navy); margin: 0 0 6px;
  letter-spacing: -.02em;
}

.form-header p {
  font-size: 14px; color: var(--muted); margin: 0;
}

/* ── Campos ── */
.lf-field { margin-bottom: 1.1rem; }

.lf-label {
  display: block;
  font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em;
  color: var(--muted);
  margin-bottom: .35rem;
}

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

.lf-input-icon {
  position: absolute;
  left: .85rem; top: 50%; transform: translateY(-50%);
  font-size: .9rem; color: var(--muted);
  pointer-events: none;
}

.lf-input {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 9px;
  padding: .65rem .875rem .65rem 2.4rem;
  font-size: .9rem;
  color: var(--text);
  background: #fafbfd;
  font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
}

.lf-input:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(27,58,92,.1);
  background: #fff;
}

.lf-input--pass { padding-right: 2.8rem; }

.lf-toggle-btn {
  position: absolute;
  right: .75rem; top: 50%; transform: translateY(-50%);
  border: none; background: transparent;
  color: var(--muted); cursor: pointer; font-size: .9rem;
  padding: .2rem;
  transition: color .15s;
}
.lf-toggle-btn:hover { color: var(--navy); }

/* Olvidé contraseña */
.lf-forgot {
  text-align: right;
  margin: -.25rem 0 1.25rem;
}
.lf-forgot a {
  font-size: .8rem; color: var(--blue); text-decoration: none;
  display: inline-flex; align-items: center; gap: .3rem;
  transition: color .15s;
}
.lf-forgot a:hover { color: var(--navy); text-decoration: underline; }

/* Botón submit */
.lf-submit {
  width: 100%;
  padding: .7rem 1rem;
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: 9px;
  font-size: .95rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  transition: background .15s, transform .12s, box-shadow .15s;
  letter-spacing: .01em;
}
.lf-submit:hover {
  background: var(--navy-d);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(27,58,92,.25);
}
.lf-submit:active { transform: none; }

/* Footer */
.lf-footer {
  margin-top: 2rem;
  text-align: center;
}
.lf-footer a {
  font-size: .78rem; color: var(--muted);
  text-decoration: none; transition: color .15s;
}
.lf-footer a:hover { color: var(--navy); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 992px) {
  .login-wrapper     { flex-direction: column; }
  .branding-panel    { padding: 44px 32px; text-align: center; }
  .branding-content  { max-width: 100%; }
  .branding-logo img { width: 130px; }
  .branding-content h1 { font-size: 25px; }
  .feature-list li   { justify-content: center; }
  .form-panel        { max-width: 100%; }
}

@media (max-width: 600px) {
  .branding-panel  { padding: 36px 24px; }
  .form-panel      { padding: 40px 24px; }
  .form-header h2  { font-size: 22px; }
  .lf-input        { font-size: .85rem; padding: .6rem .8rem .6rem 2.2rem; }
  .lf-submit       { font-size: .88rem; padding: .65rem; }
}