/* CRM Zeroka · Login V5 sobrio */

:root {
  --zk-red: #e51b2b;
  --zk-red-dark: #b71928;
  --zk-red-soft: #fff7f8;
  --zk-blue: #286cc7;
  --zk-bg: #f6f7f9;
  --zk-panel: #ffffff;
  --zk-ink: #171a1f;
  --zk-text: #4f5868;
  --zk-muted: #7d869d;
  --zk-border: #e4e8ed;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

.auth-body {
  min-height: 100vh;
  margin: 0;
  background: var(--zk-bg);
  color: var(--zk-ink);
}

.auth-shell {
  width: 100% !important;
  max-width: none !important;
  min-height: 100vh !important;
  margin: 0 !important;
  padding: 32px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.auth-stage {
  width: min(960px, 100%) !important;
  min-height: 560px;
  margin: 0 auto !important;
  display: grid;
  grid-template-columns: 43% 57%;
  overflow: hidden;
  border: 1px solid var(--zk-border);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(25, 32, 44, .09);
}

/* IZQUIERDA */

.auth-visual {
  position: relative;
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 38px 40px 32px;
  border-right: 1px solid var(--zk-border);
  background:
    linear-gradient(145deg, #ffffff 0%, #ffffff 62%, var(--zk-red-soft) 100%);
}

.auth-visual::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  right: -165px;
  top: -155px;
  border: 42px solid rgba(229, 27, 43, .07);
  border-radius: 50%;
  pointer-events: none;
}

.auth-brand {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  width: max-content;
}

.auth-brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--zk-red);
  color: #fff;
  font-size: 17px;
  font-weight: 900;
  box-shadow: 0 7px 16px rgba(229, 27, 43, .16);
}

.auth-brand > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.auth-brand strong {
  color: var(--zk-ink);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .15em;
}

.auth-brand small {
  color: var(--zk-muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .24em;
}

.auth-visual-copy {
  position: relative;
  z-index: 1;
  max-width: 340px;
  margin-top: 86px;
}

.auth-kicker {
  display: block;
  margin-bottom: 13px;
  color: var(--zk-red);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .11em;
}

.auth-visual-copy h1 {
  margin: 0 0 16px;
  color: var(--zk-ink);
  font-size: 40px;
  line-height: 1.02;
  font-weight: 760;
  letter-spacing: -.04em;
}

.auth-visual-copy h1 em {
  color: var(--zk-red);
  font-style: normal;
}

.auth-visual-copy p {
  max-width: 320px;
  margin: 0;
  color: var(--zk-muted);
  font-size: 13px;
  line-height: 1.6;
}

.auth-visual-accent {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 34px;
}

.auth-visual-accent span {
  display: block;
  height: 5px;
  border-radius: 999px;
}

.auth-visual-accent span:nth-child(1) {
  width: 46px;
  background: var(--zk-red);
}

.auth-visual-accent span:nth-child(2) {
  width: 22px;
  background: #f2b4ba;
}

.auth-visual-accent span:nth-child(3) {
  width: 9px;
  background: var(--zk-blue);
}

.auth-brand-footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: auto;
  padding-top: 28px;
}

.auth-brand-footer > span {
  width: 22px;
  height: 2px;
  background: var(--zk-red);
}

.auth-brand-footer p {
  margin: 0;
  color: var(--zk-muted);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .14em;
}

/* DERECHA */

.auth-form-zone {
  position: relative;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 54px 58px 62px;
  background: #fff;
}

.auth-card {
  width: min(100%, 390px);
  margin: 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.auth-heading {
  margin-bottom: 28px;
}

.auth-heading-kicker {
  display: block;
  margin-bottom: 11px;
  color: var(--zk-red);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .11em;
}

.auth-card h1,
.auth-card h2,
.auth-heading h1 {
  margin: 0 0 9px;
  color: var(--zk-ink);
  font-size: 34px;
  line-height: 1.08;
  font-weight: 760;
  letter-spacing: -.035em;
}

.auth-card > p,
.auth-heading p {
  margin: 0;
  color: var(--zk-muted);
  font-size: 13px;
  line-height: 1.5;
}

.auth-card form,
.auth-login-form {
  margin-top: 28px;
}

.auth-field,
.auth-card form > p {
  margin: 0 0 19px;
}

.auth-field-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 8px;
}

.auth-field > label,
.auth-field-label-row label,
.auth-card form > p > label {
  display: block;
  margin: 0 0 8px;
  color: var(--zk-text);
  font-size: 12px;
  font-weight: 750;
}

.auth-field-label-row label {
  margin-bottom: 0;
}

.auth-field-label-row a,
.auth-links a {
  color: var(--zk-red-dark);
  font-size: 11px;
  font-weight: 750;
  text-decoration: none;
}

.auth-field-label-row a:hover,
.auth-links a:hover {
  color: var(--zk-red);
  text-decoration: underline;
}

.auth-input-shell {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-input-icon {
  position: absolute;
  z-index: 2;
  left: 15px;
  width: 18px;
  height: 18px;
  color: #8b94a2;
  pointer-events: none;
}

.auth-input-icon svg,
.auth-toggle-password svg {
  width: 100%;
  height: 100%;
}

.auth-card input[type="text"],
.auth-card input[type="email"],
.auth-card input[type="password"],
.auth-input-shell input[type="text"],
.auth-input-shell input[type="email"],
.auth-input-shell input[type="password"] {
  width: 100%;
  min-height: 50px;
  padding: 11px 44px;
  border: 1px solid #dfe3e8;
  border-radius: 9px;
  outline: none;
  background: #fafbfc;
  color: var(--zk-ink);
  caret-color: var(--zk-red);
  font-size: 14px;
  box-shadow: none;
}

.auth-card input:hover {
  border-color: #c9cfd7;
}

.auth-card input:focus {
  border-color: var(--zk-red);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(229, 27, 43, .085);
}

.auth-toggle-password {
  position: absolute;
  z-index: 3;
  right: 14px;
  width: 23px;
  height: 23px;
  padding: 2px;
  border: 0;
  background: transparent;
  color: #8b94a2;
  cursor: pointer;
}

.auth-toggle-password:hover {
  color: var(--zk-ink);
}

.auth-card button[type="submit"],
.auth-submit {
  width: 100%;
  min-height: 50px;
  margin-top: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 16px;
  border: 0;
  border-radius: 9px;
  background: var(--zk-red);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(229, 27, 43, .15);
}

.auth-card button[type="submit"]:hover,
.auth-submit:hover {
  background: var(--zk-red-dark);
}

.auth-card .notice {
  margin: 0 0 20px;
  padding: 12px 13px;
  border: 1px solid #f0cbd0;
  border-radius: 9px;
  background: var(--zk-red-soft);
  color: #9e1522;
  font-size: 12px;
  line-height: 1.45;
}

.auth-card ul.errorlist {
  margin: 7px 0 0;
  padding: 0;
  list-style: none;
  color: #9e1522;
  font-size: 11px;
}

.auth-form-footer {
  position: absolute;
  left: 30px;
  right: 30px;
  bottom: 22px;
  margin: 0;
  color: #9aa1ac;
  text-align: center;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .07em;
}

/* RESPONSIVE */

@media (max-width: 820px) {
  .auth-shell {
    padding: 20px !important;
  }

  .auth-stage {
    width: min(100%, 580px) !important;
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .auth-visual {
    min-height: 250px;
    padding: 28px 30px 26px;
    border-right: 0;
    border-bottom: 1px solid var(--zk-border);
  }

  .auth-visual-copy {
    margin-top: 42px;
  }

  .auth-visual-copy h1 {
    font-size: 33px;
  }

  .auth-visual-accent,
  .auth-brand-footer {
    display: none;
  }

  .auth-form-zone {
    min-height: 430px;
    padding: 48px 34px 64px;
  }
}

@media (max-width: 520px) {
  .auth-shell {
    padding: 0 !important;
    align-items: stretch !important;
  }

  .auth-stage {
    min-height: 100vh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .auth-visual {
    min-height: 205px;
    padding: 24px 22px;
  }

  .auth-visual-copy {
    margin-top: 30px;
  }

  .auth-kicker {
    font-size: 8px;
  }

  .auth-visual-copy h1 {
    margin-bottom: 10px;
    font-size: 29px;
  }

  .auth-visual-copy p {
    max-width: 320px;
    font-size: 11px;
  }

  .auth-form-zone {
    min-height: calc(100vh - 205px);
    align-items: flex-start;
    padding: 38px 22px 58px;
  }

  .auth-card h1,
  .auth-card h2,
  .auth-heading h1 {
    font-size: 29px;
  }
}

/* === LOGIN V5 AJUSTE Z · START === */

/* Ajuste óptico de la marca: la Z queda perfectamente centrada. */
.auth-brand-mark {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  line-height: 1 !important;
  text-align: center !important;
  letter-spacing: 0 !important;
  text-indent: 0 !important;
}

.auth-brand-mark::before,
.auth-brand-mark::after {
  display: none !important;
}

/* === LOGIN V5 AJUSTE Z · END === */
