/* Loaded only by the login page; no dashboard assets are required. */
html, body { margin: 0; background: #0e1420; }
.crm-login {
    --login-text: #eef1f6;
    --login-muted: #a2aabb;
    --login-border: #354052;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: minmax(320px, 44%) minmax(0, 1fr);
    min-height: 100vh;
    min-height: 100svh;
    background: #0e1420;
    color: var(--login-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color-scheme: dark;
}
.crm-login *, .crm-login *::before, .crm-login *::after { box-sizing: border-box; }
.crm-login a { color: inherit; text-decoration: none; }
.crm-login p, .crm-login h1, .crm-login h2 { margin: 0; }
.crm-login__brand {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 64px;
    padding: 48px clamp(32px, 5.4vw, 88px) 32px;
    border-right: 1px solid #2b3444;
    background: #182131;
}
.crm-login__logo, .crm-login__mobile-logo { width: fit-content; display: inline-flex; }
.crm-login__logo img, .crm-login__mobile-logo img { display: block; max-width: 100%; object-fit: contain; }
.crm-login__intro { max-width: 380px; padding-bottom: 32px; }
.crm-login__eyebrow { display: block; margin-bottom: 14px; color: #9daec6; font-size: 12px; font-weight: 600; letter-spacing: .045em; }
.crm-login__intro h2 { color: #f1f4f8; font-size: clamp(30px, 3.2vw, 46px); font-weight: 600; line-height: 1.22; letter-spacing: -.035em; }
.crm-login__intro p { margin-top: 24px; max-width: 320px; color: #aebbd0; font-size: 16px; line-height: 1.75; }
.crm-login__copyright { color: #a0aec3; font-size: 12px; }
.crm-login__content { display: flex; align-items: center; justify-content: center; padding: 64px 40px; }
.crm-login__form-wrap { width: 100%; max-width: 400px; }
.crm-login__mobile-logo { display: none !important; }
.crm-login__header { margin-bottom: 32px; }
.crm-login__header .crm-login__eyebrow { margin-bottom: 10px; }
.crm-login__header h1 { color: var(--login-text); font-size: 30px; font-weight: 600; letter-spacing: -.035em; line-height: 1.3; }
.crm-login__header p { margin-top: 12px; color: var(--login-muted); font-size: 14px; line-height: 1.65; }
.crm-login__form { display: flex; flex-direction: column; gap: 22px; }
.crm-login__field { display: flex; flex-direction: column; gap: 8px; }
.crm-login__field > label { margin: 0; color: #e4e9f1; font-size: 14px; font-weight: 500; }
.crm-login__field input:not([type="checkbox"]) {
    display: block;
    width: 100%;
    min-height: 50px;
    border: 1px solid var(--login-border);
    border-radius: 7px;
    background: #151d2b;
    padding: 12px 14px;
    color: var(--login-text);
    font: inherit;
    font-size: 15px;
    line-height: 24px;
    outline: none;
    transition: border-color 140ms ease, box-shadow 140ms ease;
}
.crm-login__field input:not([type="checkbox"]):hover { border-color: #56637a; }
.crm-login__field input:not([type="checkbox"]):focus { border-color: #80aaff; box-shadow: 0 0 0 3px rgb(101 151 248 / 18%); }
.crm-login__field input::placeholder { color: #8694a9; opacity: 1; }
.crm-login__field input[aria-invalid="true"] { border-color: #e99595; }
.crm-login__field input:-webkit-autofill { -webkit-text-fill-color: var(--login-text); -webkit-box-shadow: 0 0 0 100px #151d2b inset; caret-color: var(--login-text); }
.crm-login__field-help { color: var(--login-muted); font-size: 12px; }
.crm-login__field-error { color: #ffb1b1; font-size: 13px; line-height: 1.5; }
.crm-login__password-wrap { position: relative; }
.crm-login__password-wrap input { padding-right: 52px !important; }
.crm-login__password-toggle { position: absolute; top: 3px; right: 4px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 5px; background: transparent; color: #a2aabb; cursor: pointer; }
.crm-login__password-toggle[hidden] { display: none; }
.crm-login__password-toggle:hover { background: #263145; color: #eef1f6; }
.crm-login__eye-slash { display: none; }
.crm-login__password-toggle.is-visible .crm-login__eye-slash { display: block; }
.crm-login__remember { display: flex; align-items: center; gap: 10px; width: fit-content; min-height: 28px; margin: -2px 0 0; color: #b7c0cf; font-size: 13px; cursor: pointer; }
.crm-login__remember input { width: 17px; height: 17px; margin: 0; accent-color: #5487ed; cursor: pointer; }
.crm-login__submit { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 50px; margin-top: 2px; padding: 12px 18px; border: 1px solid #467aec; border-radius: 7px; background: #3266db; color: #fff; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: background 140ms ease; }
.crm-login__submit:hover { background: #3c73ed; }
.crm-login__submit:active { background: #2958c2; }
.crm-login__submit:disabled { cursor: wait; opacity: .8; }
.crm-login__spinner { display: none; width: 16px; height: 16px; border: 2px solid rgb(255 255 255 / 35%); border-top-color: #fff; border-radius: 50%; animation: login-spin 800ms linear infinite; }
.crm-login__submit.is-submitting .crm-login__spinner { display: block; }
.crm-login__submit.is-submitting .crm-login__submit-arrow { display: none; }
.crm-login__support { margin-top: 28px !important; padding-top: 24px; border-top: 1px solid #2b3444; color: #9da8bb; font-size: 12px; line-height: 1.7; }
.crm-login__notice { margin-bottom: 24px; padding: 13px 16px; border: 1px solid #72484e; border-radius: 7px; background: #30212b; color: #ffb9bb; font-size: 13px; line-height: 1.6; }
.crm-login__notice strong { display: block; margin-bottom: 3px; font-weight: 600; }
.crm-login__notice--warning { border-color: #68573b; background: #2b271f; color: #e9cca0; }
.crm-login a:focus-visible, .crm-login button:focus-visible, .crm-login input[type="checkbox"]:focus-visible { outline: 2px solid #80aaff; outline-offset: 4px; }
@keyframes login-spin { to { transform: rotate(360deg); } }
@media (max-width: 850px) {
    .crm-login { grid-template-columns: minmax(280px, 40%) minmax(0, 1fr); }
    .crm-login__brand { padding: 36px 28px 28px; }
    .crm-login__content { padding: 48px 28px; }
    .crm-login__intro h2 { font-size: 32px; }
    .crm-login__intro p { font-size: 14px; }
    .crm-login__eyebrow { font-size: 11px; }
    .crm-login__header h1 { font-size: 27px; }
}
@media (max-width: 680px) {
    .crm-login { display: flex; }
    .crm-login__brand { display: none; }
    .crm-login__content { width: 100%; padding: 40px 24px; }
    .crm-login__mobile-logo { display: inline-flex !important; margin-bottom: 36px; }
    .crm-login__header { margin-bottom: 28px; }
    .crm-login__header h1 { font-size: 28px; }
    .crm-login__field input:not([type="checkbox"]) { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
    .crm-login *, .crm-login *::before, .crm-login *::after { transition: none !important; animation: none !important; }
}
