/* CLIS login — same card as CX manager (development.autom8cx.com) */
:root {
  --navy: #0b1c31;
  --blue: #0174fd;
  --blue-hover: #0d80ff;
  --text: #0b1c31;
  --muted: #5b6b80;
  --line: #e2e8f0;
  --paper: #ffffff;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body.login-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background-color: #f4f8fc !important;
  background-image:
    linear-gradient(rgba(11, 28, 49, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 28, 49, .035) 1px, transparent 1px) !important;
  background-size: 48px 48px !important;
}

.login-shell {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
}

.hexa-login-stack {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hexa-login-brand-above {
  display: flex;
  justify-content: center;
  margin: 0 0 20px;
  width: 100%;
}
.hexa-login-brand-above a { display: inline-flex; }
.login-brand-logo,
.hexa-login-brand-above img {
  display: block !important;
  max-height: 48px !important;
  width: auto !important;
  max-width: 200px !important;
  height: auto !important;
  object-fit: contain !important;
}
.login-brand-logo.light { display: none !important; }

.login-card {
  width: 100%;
  background: var(--paper);
  border-radius: 12px;
  padding: 0;
  box-shadow: 0 18px 50px rgba(11, 28, 49, .08);
  overflow: hidden;
}

.login-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 28px 18px;
  border-bottom: 1px solid #e2e8f0;
}
.login-card-accent {
  display: block;
  width: 3px;
  height: 22px;
  flex-shrink: 0;
  border-radius: 2px;
  background: #0174fd;
}
.login-card-head h1 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: #0b1c31;
}

.login-card-body { padding: 22px 28px 26px; }

.login-field { margin-bottom: 16px; }
.login-field label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #0b1c31;
}
.login-field input {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  outline: none;
}
.login-field input:focus {
  border-color: #0174fd;
  box-shadow: 0 0 0 0.15rem rgba(1, 116, 253, 0.22);
}
.login-field-password { position: relative; }
.login-field-password input { padding-right: 44px; }
.login-toggle-pass {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  color: #5b6b80;
  cursor: pointer;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.login-toggle-pass:hover { color: #0b1c31; background: rgba(1, 116, 253, 0.08); }
.login-toggle-pass .icon-hide { display: none; }
.login-toggle-pass.is-visible .icon-show { display: none; }
.login-toggle-pass.is-visible .icon-hide { display: block; }

.login-error {
  display: none;
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(225, 29, 72, 0.08);
  color: #9f1239;
  font-size: 13px;
}
.login-error.is-on { display: block; }

.login-submit {
  width: 100%;
  min-height: 48px;
  border: 1px solid #0174fd;
  border-radius: 8px;
  background: #0174fd;
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: border-radius 0.28s ease, background-color 0.2s ease;
}
.login-submit:hover {
  background: #0d80ff;
  border-color: #0d80ff;
  border-radius: 999px;
}
.login-submit:disabled { opacity: 0.72; cursor: wait; }
.login-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  display: none;
  animation: login-spin 0.7s linear infinite;
}
.login-submit.is-busy .login-spinner { display: inline-block; }
@keyframes login-spin { to { transform: rotate(360deg); } }

.login-card-foot {
  border-top: 1px solid #eceef3;
  padding: 16px 28px 20px;
  text-align: center;
}
.login-card-foot .site-copyright-link {
  color: #5b5c71;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.login-card-foot .site-copyright-link:hover { color: #0174fd; }

@media (max-width: 480px) {
  .login-card-head,
  .login-card-body,
  .login-card-foot { padding-left: 20px; padding-right: 20px; }
  .login-brand-logo,
  .hexa-login-brand-above img { max-width: 168px !important; max-height: 40px !important; }
}
