/* ══════════════════════════════════════════════════════════
   HUB SIVREC — 0-login.css v6.0
   Estilos exclusivos de la pantalla de login (standalone,
   no usa layout.php).
   ══════════════════════════════════════════════════════════ */

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

body {
  font-family: 'Inter', system-ui, sans-serif;
  min-height: 100vh;
  display: flex;
  background: #00365f;
}

/* ── Panel izquierdo — marca ─────────────────────────────── */
.login-brand {
  width: 420px;
  flex-shrink: 0;
  background: #00365f;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 48px;
  position: relative;
  overflow: hidden;
}
.login-brand::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
  top: -200px; left: -150px;
}
.login-brand::after {
  content: '';
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(236,103,27,.12);
  bottom: -100px; right: -80px;
}

/* Logo SVG Ziacom */
.brand-logo-wrap {
  position: relative; z-index: 1;
  margin-bottom: 32px;
}
.brand-logo-wrap svg {
  width: 88px; height: 88px;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,.25));
}

.brand-title {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 32px; font-weight: 800;
  color: #fff;
  letter-spacing: -.5px;
  position: relative; z-index: 1;
}
.brand-subtitle {
  font-size: 12px;
  color: rgba(255,255,255,.5);
  text-transform: uppercase;
  letter-spacing: .14em;
  margin-top: 6px;
  position: relative; z-index: 1;
}
.brand-tagline {
  margin-top: 40px;
  font-size: 13px;
  color: rgba(255,255,255,.4);
  text-align: center;
  line-height: 1.7;
  position: relative; z-index: 1;
  font-style: italic;
}
.brand-divider {
  width: 40px; height: 2px;
  background: #ec671b;
  margin: 20px auto;
  position: relative; z-index: 1;
}

/* ── Panel derecho — formulario ──────────────────────────── */
.login-form-wrap {
  flex: 1;
  background: #f0f3f7;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 32px;
}

.login-card {
  width: 100%;
  max-width: 400px;
  background: #fff;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 4px 32px rgba(0,54,95,.1);
}
.login-card h2 {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 22px; font-weight: 800;
  color: #00365f;
  margin-bottom: 6px;
}
.login-card p {
  font-size: 13px;
  color: #6a727f;
  margin-bottom: 28px;
}

label {
  display: block;
  font-size: 11px; font-weight: 700;
  color: #00365f;
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: 6px;
}
input[type="email"],
input[type="password"] {
  width: 100%;
  padding: 11px 14px;
  background: #f5f7fa;
  border: 1px solid #dde1ec;
  border-radius: 7px;
  color: #1a2540;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  transition: border-color .15s, box-shadow .15s;
}
input[type="email"] { margin-bottom: 18px; }
input[type="email"]:focus,
input[type="password"]:focus {
  outline: none;
  border-color: #ec671b;
  box-shadow: 0 0 0 3px rgba(236,103,27,.12);
  background: #fff;
}

/* ── Ver/ocultar contraseña ──────────────────────────────── */
.pw-wrap { position: relative; margin-bottom: 18px; }
.pw-wrap input[type="password"],
.pw-wrap input[type="text"] { margin-bottom: 0; padding-right: 42px; }
.pw-toggle {
  position: absolute; right: 4px; top: 4px; bottom: 4px;
  width: 36px;
  display: flex; align-items: center; justify-content: center;
  background: none; border: none; border-radius: 5px;
  color: #8a93a6; cursor: pointer;
  transition: color .15s, background-color .15s;
}
.pw-toggle:hover { color: #4a5568; background: rgba(0,0,0,.04); }
.pw-toggle.is-visible { color: #ec671b; }
.pw-toggle:focus-visible { outline: 2px solid #ec671b; outline-offset: 1px; }

.btn-login {
  width: 100%;
  padding: 13px;
  background: #ec671b;
  border: none; border-radius: 7px;
  color: #fff;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 15px; font-weight: 700;
  cursor: pointer;
  transition: all .15s;
  letter-spacing: .02em;
  box-shadow: 0 4px 14px rgba(236,103,27,.35);
  margin-top: 4px;
}
.btn-login:hover {
  background: #d45a14;
  box-shadow: 0 6px 18px rgba(236,103,27,.4);
  transform: translateY(-1px);
}
.btn-login:active { transform: translateY(0); }
.btn-login:disabled {
  opacity: .75; cursor: wait; transform: none;
  box-shadow: 0 4px 14px rgba(236,103,27,.2);
}

.err {
  background: rgba(209,48,48,.08);
  border: 1px solid rgba(209,48,48,.25);
  border-left: 3px solid #d13030;
  color: #a82424;
  padding: 11px 14px;
  border-radius: 7px;
  font-size: 13px;
  margin-bottom: 18px;
}

/* ── Responsive — tablet ─────────────────────────────────── */
@media (max-width: 860px) {
  .login-brand { width: 320px; padding: 48px 32px; }
  .brand-title { font-size: 26px; }
}

/* ── Responsive — móvil ──────────────────────────────────── */
@media (max-width: 640px) {
  body { flex-direction: column; min-height: 100svh; }
  .login-brand {
    width: 100%; min-height: auto; padding: 28px 24px 24px;
    flex-direction: row; gap: 14px;
    align-items: center; justify-content: center;
  }
  .login-brand::before, .login-brand::after { display: none; }
  .brand-logo-wrap { margin-bottom: 0; flex-shrink: 0; }
  .brand-logo-wrap svg { width: 48px !important; height: 48px !important; filter: none; }
  .brand-title { font-size: 20px; }
  .brand-subtitle { letter-spacing: .1em; }
  .brand-tagline, .brand-divider { display: none; }
  .login-form-wrap { flex: 1; padding: 20px 16px; align-items: flex-start; padding-top: 28px; }
  .login-card { padding: 28px 22px; box-shadow: none; border: 1px solid #dde1ec; }
  input[type="email"], input[type="password"] { font-size: 16px; } /* evita zoom iOS */
}

/* ── Móvil muy pequeño ───────────────────────────────────── */
@media (max-width: 380px) {
  .login-card { padding: 22px 16px; }
  .brand-title { font-size: 18px; }
}
