/* ============================================================
   JTEL WEB SUITE - MODULE 001 : LOGIN - STYLES
   ------------------------------------------------------------
   Folder : 001-login/001-login.css
   Loaded after 999-common.css, so rules here refine the common
   baseline for this module only. Section notes show the original
   styles.css block each rule came from.

   Build 015 - module-wise split (2026-09-30). No visual change.
   ============================================================ */

/* ---------- from [module-login] ---------- */

.screen-login {
  position: relative;
  align-items: stretch;
  justify-content: center;
  overflow: hidden;
  background:
    linear-gradient(138deg, rgba(10, 18, 26, 0.98), rgba(25, 39, 51, 0.98)),
    var(--bg-deep);
}

.login-backdrop {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.login-backdrop::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.17;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 90%);
}

.login-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(4px);
}

.login-glow-one {
  width: 540px;
  height: 540px;
  left: -180px;
  top: -200px;
  background: radial-gradient(circle, rgba(201, 47, 56, 0.25), transparent 68%);
}

.login-glow-two {
  width: 700px;
  height: 700px;
  right: -290px;
  bottom: -360px;
  background: radial-gradient(circle, rgba(93, 129, 153, 0.28), transparent 67%);
}

.login-stage {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 48px));
  margin: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr);
  gap: 72px;
  align-items: center;
}

.login-brand-panel {
  color: white;
  padding: 34px 18px;
}

.brand-badge {
  width: min(520px, 92%);
  min-height: 170px;
  padding: 28px 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.97), rgba(232,238,242,0.92));
  border: 1px solid rgba(255,255,255,0.74);
  border-radius: 23px;
  box-shadow:
    inset 0 1px 0 white,
    0 22px 55px rgba(0,0,0,0.22);
}

.brand-logo {
  display: block;
  width: 100%;
  max-height: 130px;
  object-fit: contain;
}

.brand-copy {
  margin-top: 34px;
  max-width: 590px;
}

.eyebrow {
  display: inline-block;
  color: var(--jtel-red);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.brand-copy h1 {
  margin: 8px 0 12px;
  font-size: clamp(2.2rem, 4vw, 4.4rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

.brand-copy p {
  max-width: 560px;
  margin: 0;
  color: rgba(231, 239, 245, 0.78);
  font-size: 1.06rem;
  line-height: 1.75;
}

.brand-features {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 30px;
}

.feature-chip {
  min-width: 160px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 15px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  backdrop-filter: blur(7px);
}

.feature-icon {
  color: #e25a61;
  font-size: 1.15rem;
}

.feature-chip strong,
.feature-chip small {
  display: block;
}

.feature-chip strong {
  font-size: 0.85rem;
}

.feature-chip small {
  margin-top: 2px;
  color: rgba(232,239,244,0.62);
  font-size: 0.71rem;
}

.login-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  justify-self: end;
  padding: 39px 38px 25px;
  overflow: hidden;
  background:
    linear-gradient(150deg, rgba(255,255,255,0.99), rgba(240,245,248,0.98));
  border: 1px solid rgba(255,255,255,0.9);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.login-card-topline {
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: linear-gradient(90deg, #8c1e25, #e24c54, #8c1e25);
}

.login-card-header {
  margin-bottom: 27px;
}

.login-card-header h2 {
  margin: 7px 0 7px;
  color: var(--text);
  font-size: 2rem;
  letter-spacing: -0.035em;
}

.login-card-header p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.91rem;
  line-height: 1.6;
}

.login-form {
  display: flex;
  flex-direction: column;
}

.field-label {
  margin: 0 0 7px;
  color: #41515f;
  font-size: 0.78rem;
  font-weight: 750;
}

.field-label:not(:first-child) {
  margin-top: 17px;
}

.field-shell {
  position: relative;
  display: flex;
  align-items: center;
  height: 52px;
  background: white;
  border: 1px solid #ccd7df;
  border-radius: 12px;
  box-shadow: inset 0 1px 2px rgba(20, 39, 54, 0.04);
  transition: 160ms ease;
}

.field-shell:focus-within {
  border-color: #718b9f;
  box-shadow:
    0 0 0 3px rgba(86, 116, 139, 0.13),
    inset 0 1px 2px rgba(20, 39, 54, 0.04);
}

.field-icon {
  width: 48px;
  color: #6f8291;
  font-size: 0.78rem;
  font-weight: 900;
  text-align: center;
}

.field-shell input {
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0 48px 0 0;
  color: var(--text);
  background: transparent;
  border: 0;
  outline: 0;
}

.field-shell input::placeholder {
  color: #a1adb6;
}

.password-toggle {
  position: absolute;
  right: 8px;
  width: 38px;
  height: 38px;
  color: #71818e;
  background: transparent;
  border: 0;
  border-radius: 9px;
  cursor: pointer;
}

.password-toggle:hover {
  color: var(--jtel-red);
  background: var(--jtel-red-soft);
}

.login-preferences {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 11px;
}

.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #5f6f7b;
  font-size: 0.77rem;
  cursor: pointer;
}

.checkbox-label input {
  accent-color: var(--jtel-red);
}

.form-message {
  min-height: 21px;
  margin-top: 2px;
  color: var(--danger);
  font-size: 0.76rem;
  line-height: 1.4;
}

.form-message.is-success {
  color: var(--success);
}

.primary-button {
  height: 52px;
  margin-top: 5px;
  padding: 0 18px 0 23px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: white;
  background:
    linear-gradient(180deg, #db4650 0%, #bf2832 52%, #a51f28 100%);
  border: 1px solid #9d1c24;
  border-radius: 12px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.34),
    0 10px 20px rgba(181, 34, 44, 0.22);
  font-weight: 800;
  cursor: pointer;
  transition: 150ms ease;
}

.primary-button:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.34),
    0 13px 24px rgba(181, 34, 44, 0.26);
}

.primary-button:active {
  transform: translateY(1px);
}

.primary-button:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

.button-arrow {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 8px;
}

.login-card-footer {
  margin-top: 25px;
  padding-top: 17px;
  display: flex;
  justify-content: center;
  gap: 8px;
  color: #8a98a3;
  border-top: 1px solid #dce4e9;
  font-size: 0.68rem;
  font-weight: 650;
}

.footer-dot {
  color: var(--jtel-red);
}


/* ---------- from RESPONSIVE RULES ---------- */

@media (max-width: 1120px) {
  .login-stage {
      gap: 38px;
    }
}

@media (max-width: 900px) {
  .login-stage {
      width: min(520px, calc(100% - 32px));
      grid-template-columns: 1fr;
      gap: 22px;
    }

  .login-brand-panel {
      padding: 0;
      text-align: center;
    }

  .brand-badge {
      width: min(340px, 88%);
      min-height: 105px;
      margin: 0 auto;
      padding: 15px 23px;
    }

  .brand-logo {
      max-height: 80px;
    }

  .brand-copy {
      margin: 19px auto 0;
    }

  .brand-copy h1 {
      margin-top: 5px;
      font-size: 2rem;
    }

  .brand-copy p,
    .brand-features {
      display: none;
    }

  .login-card {
      max-width: 470px;
      justify-self: center;
      padding: 31px 30px 22px;
    }
}

@media (max-width: 620px) {
  .login-stage {
      width: 100%;
      height: 100%;
      padding: max(18px, env(safe-area-inset-top)) 16px max(18px, env(safe-area-inset-bottom));
      overflow-y: auto;
    }

  .login-brand-panel {
      margin-top: auto;
    }

  .brand-badge {
      width: min(270px, 82vw);
      min-height: 84px;
      border-radius: 16px;
    }

  .brand-logo {
      max-height: 61px;
    }

  .brand-copy {
      margin-top: 14px;
    }

  .brand-copy .eyebrow {
      font-size: 0.6rem;
    }

  .brand-copy h1 {
      font-size: 1.55rem;
    }

  .login-card {
      margin-bottom: auto;
      padding: 27px 20px 19px;
      border-radius: 20px;
    }

  .login-card-header {
      margin-bottom: 21px;
    }

  .login-card-header h2 {
      font-size: 1.6rem;
    }

  .login-preferences {
      align-items: flex-start;
      flex-direction: column;
    }
}

@media (max-height: 720px) and (min-width: 621px) {
  .login-stage {
      transform: scale(0.91);
    }
}
