/* CRMka: the approved presentation's brand palette and wordmark. */
@font-face {
    font-family: CRMkaLogin;
    src: url("./crmka-ui-regular.woff2") format("woff2");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}
:root {
    color-scheme: light;
    --auth-background: #061b23;
    --auth-ink: #182e38;
    --auth-muted: #728490;
    --auth-border: #e2eaee;
    --auth-green: #00a97b;
    --auth-focus: #00aa7c;
}

* { box-sizing: border-box; }
html { min-width: 280px; min-height: 100%; background: var(--auth-background); }
body {
    margin: 0;
    min-height: 100vh;
    min-height: 100svh;
    background: var(--auth-background);
    color: var(--auth-ink);
    font-family: CRMkaLogin, "Segoe UI", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: var(--auth-green); }
button:focus-visible, a:focus-visible { outline: 3px solid #12d6a0; outline-offset: 4px; }

.auth-page {
    width: min(100%, 1180px);
    min-height: 100vh;
    min-height: 100svh;
    margin-inline: auto;
    padding: 64px 48px;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    align-items: center;
    column-gap: clamp(48px, 7vw, 96px);
}
.auth-brand { min-width: 0; padding-bottom: 16px; }
.auth-logo { display: block; width: min(100%, 422px); height: auto; }
.auth-slogan {
    margin: 18px 0 0;
    color: #c4dbe3;
    font-size: clamp(20px, 1.8vw, 24px);
    line-height: 1.65;
    letter-spacing: -.25px;
    font-weight: 400;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    justify-self: end;
    padding: 36px;
    border: 1px solid rgba(226, 234, 238, .7);
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 18px 60px rgba(0, 10, 16, .18);
}
.auth-card-heading { margin-bottom: 28px; }
.auth-eyebrow {
    margin: 0 0 12px;
    color: var(--auth-muted);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.5px;
    line-height: 1.5;
}
.auth-card h1 { margin: 0; font-size: 30px; line-height: 1.2; font-weight: 600; letter-spacing: -.65px; }
.auth-description { margin: 10px 0 0; color: var(--auth-muted); font-size: 14px; line-height: 1.6; }
.auth-form { display: flex; flex-direction: column; gap: 21px; }
.auth-field { min-width: 0; }
.auth-field label { display: block; margin-bottom: 8px; font-size: 13px; line-height: 1.5; font-weight: 600; }
.auth-field input {
    width: 100%;
    min-width: 0;
    height: 46px;
    padding: 11px 13px;
    border: 1px solid var(--auth-border);
    border-radius: 8px;
    background: #fff;
    color: var(--auth-ink);
    font-size: 14px;
    line-height: 1.5;
    transition: border-color .15s, box-shadow .15s;
}
.auth-field input::placeholder { color: #91a0a8; opacity: 1; }
.auth-field input:hover { border-color: #b9cbd2; }
.auth-field input:focus { outline: none; border-color: var(--auth-focus); box-shadow: 0 0 0 3px rgba(0, 170, 124, .13); }
.auth-field input[aria-invalid="true"] { border-color: #c75656; }
.auth-password-wrap { position: relative; }
.auth-password-wrap input { padding-inline-end: 48px; }
.auth-password-toggle {
    position: absolute;
    inset-inline-end: 2px;
    top: 2px;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--auth-muted);
}
.auth-password-toggle[hidden] { display: none; }
.auth-password-toggle:hover { color: var(--auth-ink); background: #f3f6f8; }
.auth-eye { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.auth-eye-strike { display: none; }
.auth-password-toggle[aria-pressed="true"] .auth-eye-strike { display: block; }
.auth-forgot { align-self: flex-end; margin-top: -8px; font-size: 13px; line-height: 1.5; text-decoration: none; font-weight: 600; }
.auth-forgot:hover { text-decoration: underline; text-underline-offset: 3px; }
.auth-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    min-height: 46px;
    margin-top: 2px;
    padding: 11px 18px;
    border: 1px solid var(--auth-green);
    border-radius: 8px;
    background: var(--auth-green);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    transition: background .15s, border-color .15s;
}
.auth-submit:hover { background: #008f68; border-color: #008f68; }
.auth-submit:active { background: #007b59; }
.auth-submit svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
[dir="rtl"] .auth-submit svg { transform: rotate(180deg); }
.auth-message { margin: 0 0 20px; padding: 11px 13px; border: 1px solid; border-radius: 8px; font-size: 13px; line-height: 1.55; overflow-wrap: anywhere; }
.auth-message ul { margin: 0; padding-inline-start: 16px; }
.auth-message-error { color: #982d2d; background: #fff4f4; border-color: #f0d0d0; }
.auth-message-warning { color: #825f13; background: #fff9ec; border-color: #eddfbb; }
.auth-message-success { color: #12694f; background: #effaf5; border-color: #cbe8da; }
.auth-message-info { color: #2b6178; background: #f0f8fb; border-color: #cfe4ed; }
.auth-field-error { margin: 7px 0 0; color: #982d2d; font-size: 12px; line-height: 1.5; }

@media (max-width: 860px) {
    .auth-page { max-width: 540px; padding: 42px 24px; grid-template-columns: minmax(0, 1fr); align-content: center; gap: 30px; }
    .auth-brand { padding: 0; text-align: center; }
    .auth-logo { width: min(100%, 290px); margin-inline: auto; }
    .auth-slogan { max-width: 410px; margin: 2px auto 0; font-size: 18px; line-height: 1.6; }
    .auth-card { justify-self: center; }
}
@media (max-width: 420px) {
    .auth-page { padding: 28px 18px; gap: 26px; }
    .auth-logo { width: 235px; }
    .auth-slogan { max-width: 320px; font-size: 16px; }
    .auth-card { padding: 26px 22px; }
    .auth-card h1 { font-size: 27px; }
    .auth-card-heading { margin-bottom: 24px; }
    .auth-field input { font-size: 16px; }
    .desktop-break { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; }
}
