:root {
  --azul-oscuro: #38485F;
  --azul-texto: #38485F;
  --amarillo: #f5b800;
  --rojo: #d31f2e;
  --gris-fondo: #f4f5f7;
  --gris-borde: #e2e4e9;
  --gris-texto: #6b7280;
  --negro-boton: #7D8D4E;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Segoe UI', Roboto, Arial, sans-serif;
  background: #000;
}

.login-wrapper {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

/* ---------- Panel izquierdo: imagen de fondo ---------- */

.login-visual {
    flex: 1.6;
    position: relative;
    overflow: hidden;

    background-image: url("../img/imagen-login.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
/* ---------- Panel derecho: formulario ---------- */
.login-panel {
  flex: 1;
  min-width: 420px;
  max-width: 460px;
  background: #fff;
  padding: 48px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 36px;
}

.login-logo .logo-mark {
  width: 40px;
  height: 40px;
  position: relative;
}
.login-logo .logo-mark span {
  position: absolute;
  border-radius: 50%;
}
.login-logo .logo-mark .dot-yellow { width: 20px; height: 20px; background: var(--amarillo); top: 0; left: 10px; }
.login-logo .logo-mark .dot-red    { width: 14px; height: 14px; background: var(--rojo); bottom: 0; right: 0; }
.login-logo .logo-mark .bar-blue   { width: 16px; height: 40px; background: var(--azul-oscuro); left: 0; top: 0; border-radius: 4px; }

.login-logo .logo-text .name { font-weight: 800; font-size: 15px; color: #17181c; letter-spacing: 0.5px; }
.login-logo .logo-text .sub  { font-size: 9px; color: var(--gris-texto); letter-spacing: 0.5px; }

.login-panel h1 {
  font-size: 28px;
  font-weight: 800;
  color: #17181c;
  margin: 0 0 28px;
  letter-spacing: 1px;
}

.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--azul-texto);
  margin-bottom: 6px;
}
.field .input-wrap {
  position: relative;
}
.field input {
  width: 100%;
  padding: 12px 40px 12px 14px;
  border: 1px solid var(--gris-borde);
  border-radius: 8px;
  font-size: 14px;
  background: #fafafa;
  color: #17181c;
}
.field input:focus {
  outline: none;
  border-color: var(--azul-oscuro);
  background: #fff;
}
.field .toggle-pass {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gris-texto);
  font-size: 15px;
}

.row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 4px 0 24px;
  font-size: 13px;
}

.switch { display: flex; align-items: center; gap: 8px; }
.switch input { display: none; }
.switch .slider {
  width: 34px; height: 18px;
  background: var(--gris-borde);
  border-radius: 20px;
  position: relative;
  transition: 0.2s;
}
.switch .slider::before {
  content: "";
  position: absolute;
  width: 14px; height: 14px;
  background: #fff;
  border-radius: 50%;
  top: 2px; left: 2px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.3);
  transition: 0.2s;
}
.switch input:checked + .slider { background: var(--azul-oscuro); }
.switch input:checked + .slider::before { left: 18px; }
.switch span.label-text { color: #4b4f58; }

.link-muted {
  color: var(--azul-texto);
  text-decoration: none;
  font-weight: 600;
}
.link-muted:hover { text-decoration: underline; }

.btn {
  width: 100%;
  padding: 13px;
  border-radius: 8px;
  border: none;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  margin-bottom: 12px;
  transition: opacity 0.15s;
}
.btn:hover { opacity: 0.9; }
.btn-primary {
  background: var(--gris-borde);
  color: #9aa0ab;
}
.btn-primary.enabled {
  background: var(--azul-oscuro);
  color: #fff;
}
.btn-dark {
  background: var(--negro-boton);
  color: #fff;
}

.footer-link {
  text-align: center;
  margin-top: 8px;
}
.footer-link a { color: var(--azul-texto); font-size: 13px; text-decoration: none; font-weight: 600; }

.copyright {
  margin-top: auto;
  padding-top: 40px;
  text-align: center;
  font-size: 12px;
  color: var(--gris-texto);
}
.copyright a { color: var(--gris-texto); }

.alert {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 18px;
}
.alert-error   { background: #fdecec; color: #b42318; border: 1px solid #f6c6c6; }
.alert-success { background: #e9f9ef; color: #12764a; border: 1px solid #b7ebc9; }

@media (max-width: 900px) {
  .login-visual { display: none; }
  .login-panel { max-width: 100%; min-width: 0; margin: 0 auto; }
}
