@font-face { font-family: Manrope; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/manrope/manrope-400.ttf') format('truetype'); }
@font-face { font-family: Manrope; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/manrope/manrope-600.ttf') format('truetype'); }
@font-face { font-family: Manrope; font-style: normal; font-weight: 800; font-display: swap; src: url('../fonts/manrope/manrope-800.ttf') format('truetype'); }
.crm-login, .crm-login * { box-sizing: border-box; }
.crm-login {
  --login-navy: #09162A;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 100vh;
  min-height: 100dvh;
  padding: 20px;
  gap: 20px;
  background: #f7f8fa;
  color: var(--login-navy);
  font-family: Manrope, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}
.login-story {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 32px clamp(28px, 3.5vw, 56px) 28px;
  border-radius: 24px;
  background: var(--login-navy);
  color: #fff;
  overflow: hidden;
}
.login-brand { display: inline-flex; align-items: center; align-self: flex-start; gap: 16px; color: #fff; text-decoration: none; }
.login-brand:hover { color: #fff; }
.login-brand img { flex-shrink: 0; width: 200px; height: 130px; object-fit: contain; }
.login-brand strong { display: block; max-width: 260px; font-size: 15px; line-height: 1.5; font-weight: 800; }
.login-brand small { display: block; margin-top: 4px; color: #aebacc; font-size: 11px; letter-spacing: .2px; }
.login-story-copy { margin-block: auto 0; padding-top: 28px; }
.crm-login .login-eyebrow { display: flex; align-items: center; gap: 10px; font-size: 10px; font-weight: 800; line-height: 1.6; letter-spacing: 1.5px; }
.login-story .login-eyebrow { color: #bac7d8; }
.login-brand-line { width: 22px; height: 1px; background: #bac7d8; }
.login-story h1 { margin: 18px 0; font-size: clamp(38px, 3.7vw, 56px); font-weight: 600; line-height: 1.16; letter-spacing: -2px; }
.login-story h1 span { color: #b3c4dc; }
.login-story-copy > p { max-width: 390px; margin: 0; color: #b8c3d2; font-size: 13px; line-height: 1.9; }
.login-workshop-art { max-width: 380px; width: 100%; margin: 16px auto 14px; color: #c6d5e8; }
.login-workshop-art svg { display: block; width: 100%; height: auto; }
.login-story-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 22px; border-top: 1px solid #ffffff1a; color: #c8d2df; font-size: 11px; }
.login-story-footer > span { display: inline-flex; align-items: center; gap: 8px; }
.login-story-footer i { opacity: .7; }
.login-panel { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 0; padding: 24px 32px 8px; }
.login-panel-content { width: 100%; max-width: 400px; margin-block: auto; padding: 12px 0; }
.login-access-icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin-bottom: 28px; border: 1px solid #dce2ea; border-radius: 14px; background: #fff; color: var(--login-navy); font-size: 19px; box-shadow: 0 3px 5px #09162a04; }
.login-form-intro .login-eyebrow { color: #707b8b; font-size: 9px; letter-spacing: 1.6px; margin-bottom: 12px; }
.login-form-intro h2 { margin: 0 0 12px; font-size: 36px; font-weight: 800; line-height: 1.25; letter-spacing: -1.4px; }
.login-form-intro > p { margin: 0 0 32px; color: #59677b; font-size: 14px; line-height: 1.7; }
.crm-login-form { width: 100%; margin: 0; padding: 0; }
.login-field { margin-bottom: 22px; }
.login-field > label { display: block; margin-bottom: 9px; color: #29364b; font-size: 13px; font-weight: 600; }
.login-input-wrap { position: relative; }
.login-input-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: #8a95a6; font-size: 14px; pointer-events: none; }
.login-field input { display: block; width: 100%; min-width: 0; min-height: 52px; padding: 14px 16px 14px 44px; border: 1px solid #dce2e9; border-radius: 9px; background: #fff; color: var(--login-navy); font: inherit; font-size: 14px; line-height: 22px; transition: border-color .15s, box-shadow .15s; }
.login-field input::placeholder { color: #909aaa; }
.login-field input:focus { outline: none; border-color: var(--login-navy); box-shadow: 0 0 0 3px #09162a0d; }
.login-field input[aria-invalid="true"] { border-color: #b84151; }
.login-password input { padding-right: 54px; }
.login-password button { position: absolute; right: 5px; top: 5px; display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 6px; color: #7e899b; background: transparent; font-size: 14px; }
.login-password button:hover { background: #f1f4f7; color: var(--login-navy); }
.login-options { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin: 2px 0 26px; }
.login-remember { display: inline-flex; align-items: center; gap: 8px; margin: 0; color: #59677a; font-size: 12px; cursor: pointer; }
.login-remember input { width: 16px; height: 16px; margin: 0; accent-color: var(--login-navy); }
.login-recovery { padding-block: 4px; color: var(--login-navy); font-size: 12px; font-weight: 600; text-decoration: none; }
.login-recovery:hover { color: var(--login-navy); text-decoration: underline; text-underline-offset: 3px; }
.login-submit { display: flex; align-items: center; justify-content: center; gap: 14px; width: 100%; min-height: 52px; padding: 14px 20px; border: 1px solid var(--login-navy); border-radius: 9px; background: var(--login-navy); color: #fff; font: inherit; font-size: 14px; font-weight: 600; transition: background-color .15s, box-shadow .15s; }
.login-submit:hover { background: #142742; box-shadow: 0 4px 12px #09162a1a; }
.login-submit:disabled { cursor: wait; opacity: .7; }
.crm-login :is(button, a, input[type="checkbox"]):focus-visible { outline: 3px solid #7d99bd; outline-offset: 3px; }
.login-help { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 18px 0 0; color: #667388; font-size: 11px; line-height: 1.6; text-align: center; }
.login-support { margin-top: 24px; padding-top: 18px; border-top: 1px solid #e4e8ee; color: #667388; font-size: 12px; line-height: 1.9; text-align: center; }
.login-support span { color: #43526a; }
.login-copyright { margin: 24px 0 0; color: #667388; font-size: 11px; line-height: 1.6; text-align: center; }
.login-error { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 24px; padding: 12px 14px; border: 1px solid #efc9cf; border-radius: 9px; background: #fff3f5; color: #a42d40; font-size: 12px; line-height: 1.6; }
.login-error i { margin-top: 3px; }
@media (min-width: 1600px) {
  .crm-login { padding: 28px; gap: 28px; }
  .login-story { padding: 44px 64px 36px; }
  .login-panel-content { max-width: 440px; }
  .login-form-intro h2 { font-size: 42px; }
  .login-field input, .login-submit { font-size: 15px; }
  .login-field > label, .login-form-intro > p { font-size: 14px; }
}
@media (min-width: 768px) and (max-height: 800px) {
  .login-story { padding-block: 24px; }
  .login-story-copy { padding-top: 24px; }
  .login-story h1 { font-size: clamp(34px, 3.4vw, 48px); line-height: 1.12; margin-block: 16px; }
  .login-story-copy > p { font-size: 13px; line-height: 1.8; }
  .login-workshop-art { max-width: 340px; }
  .login-access-icon { width: 36px; height: 36px; margin-bottom: 16px; border-radius: 10px; font-size: 16px; }
  .login-form-intro h2 { font-size: 32px; }
  .login-form-intro > p { margin-bottom: 24px; }
  .login-field { margin-bottom: 18px; }
  .login-options { margin-bottom: 22px; }
}
@media (min-width: 768px) and (max-width: 1023.98px) {
  .crm-login { padding: 14px; gap: 8px; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); }
  .login-story { padding: 24px; }
  .login-brand { gap: 10px; }
  .login-brand img { width: 58px; height: 58px; }
  .login-brand strong { font-size: 12px; }
  .login-story h1 { font-size: 38px; letter-spacing: -1px; }
  .login-story-copy { padding-top: 40px; }
  .login-panel { padding-inline: 24px; }
  .login-form-intro h2 { font-size: 30px; }
  .login-story-footer { gap: 12px; font-size: 10px; }
}
@media (max-width: 767.98px) {
  .crm-login { display: flex; flex-direction: column; min-height: 100dvh; padding: 0; gap: 0; }
  .login-story { padding: 18px 24px; border-radius: 0; }
  .login-brand { gap: 14px; }
  .login-brand img { width: 58px; height: 54px; }
  .login-brand strong { font-size: 14px; }
  .login-brand small { font-size: 10px; }
  .login-story-copy, .login-workshop-art, .login-story-footer { display: none; }
  .login-panel { flex: 1; padding: 28px 24px 20px; }
  .login-panel-content { max-width: 420px; margin-block: auto; padding: 12px 0; }
  .login-access-icon { width: 42px; height: 42px; margin-bottom: 22px; border-radius: 12px; font-size: 17px; }
  .login-form-intro h2 { font-size: 32px; }
  .login-form-intro > p { margin-bottom: 28px; font-size: 13px; }
  .login-field input { font-size: 16px; }
  .login-field > label, .login-submit { font-size: 14px; }
  .login-remember, .login-recovery { font-size: 12px; }
  .login-help { font-size: 10px; }
  .login-support { margin-top: 26px; padding-top: 20px; }
  .login-copyright { margin-top: 20px; }
}
@media (prefers-reduced-motion: reduce) { .login-field input, .login-submit { transition: none; } }
