/* Trinico Cloud admin sign-in (26 Sep 2026).
 * Brand: Montserrat; cobalt #1B77C9 / cobalt dark #1A5FAF carry white text
 * (4.64:1 / 6.36:1); sky, green and orange never carry text here.
 * Login only: the rest of the app keeps assets/app.css.
 */
:root {
    --tl-cobalt: #1B77C9;
    --tl-cobalt-dk: #1A5FAF;
    --tl-cobalt-deep: #134C8E;
    --tl-sky: #44A8DA;
    --tl-green: #ABC441;
    --tl-ink: #13202E;
    --tl-ink-2: #4A5A6C;
    --tl-line: #D6DEE8;
    --tl-bg: #F4F7FB;
    --tl-surface: #FFFFFF;
    --tl-bad-bg: #FDECEC;
    --tl-bad-ink: #9B1C1C;
    --tl-radius: 18px;
    --tl-radius-sm: 12px;
    --tl-font: "Montserrat", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
.tl-body {
    min-height: 100dvh;
    font-family: var(--tl-font);
    color: var(--tl-ink);
    background: var(--tl-bg);
    -webkit-font-smoothing: antialiased;
}

.tl-shell {
    display: grid;
    grid-template-columns: minmax(340px, 44%) 1fr;
    min-height: 100dvh;
}

/* ----- Brand panel ----- */
.tl-brand {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 48px 56px 36px;
    color: #FFFFFF;
    background:
        radial-gradient(120% 80% at 100% 0%, rgba(68, 168, 218, .28) 0%, rgba(68, 168, 218, 0) 55%),
        linear-gradient(160deg, var(--tl-cobalt) 0%, var(--tl-cobalt-dk) 55%, var(--tl-cobalt-deep) 100%);
}
/* A quiet dot grid, so the panel is not a flat slab. */
.tl-brand::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .10) 1px, transparent 1.2px);
    background-size: 22px 22px;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 45%, #000 100%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 45%, #000 100%);
    pointer-events: none;
}
.tl-brand > * { position: relative; }
.tl-logo { display: inline-block; align-self: flex-start; border-radius: 8px; }
.tl-logo img { display: block; width: 220px; height: auto; }
.tl-logo:focus-visible { outline: 2px solid #FFFFFF; outline-offset: 6px; }

.tl-brand-copy { margin-top: auto; max-width: 30ch; }
.tl-kicker {
    margin: 0 0 10px;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .82);
}
.tl-kicker::before {
    content: "";
    display: inline-block;
    width: 22px;
    height: 3px;
    margin: 0 10px 3px 0;
    border-radius: 2px;
    background: var(--tl-green);
    vertical-align: middle;
}
.tl-brand-line {
    margin: 0;
    font-size: 26px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -.01em;
    text-wrap: balance;
}
.tl-brand-foot {
    margin: 40px 0 0;
    font-size: 12.5px;
    color: rgba(255, 255, 255, .78);
}

/* ----- Form side ----- */
.tl-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
}
.tl-card {
    width: 100%;
    max-width: 420px;
    padding: 40px 36px 36px;
    background: var(--tl-surface);
    border-radius: var(--tl-radius);
    box-shadow: 0 1px 2px rgba(19, 76, 142, .06), 0 12px 32px -12px rgba(19, 76, 142, .18);
}
.tl-title {
    margin: 0 0 6px;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.15;
}
.tl-sub {
    margin: 0 0 28px;
    font-size: 14.5px;
    line-height: 1.5;
    color: var(--tl-ink-2);
}

.tl-error {
    margin: -8px 0 22px;
    padding: 12px 14px;
    border-radius: var(--tl-radius-sm);
    background: var(--tl-bad-bg);
    color: var(--tl-bad-ink);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.45;
}

.tl-field { margin-bottom: 20px; }
.tl-field label {
    display: block;
    margin-bottom: 8px;
    font-size: 13.5px;
    font-weight: 600;
}
.tl-field input {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    font: 500 15px/1 var(--tl-font);
    color: var(--tl-ink);
    background: var(--tl-surface);
    border: 1.5px solid var(--tl-line);
    border-radius: var(--tl-radius-sm);
    transition: border-color .2s ease, box-shadow .2s ease;
}
.tl-field input:hover { border-color: #B7C4D3; }
.tl-field input:focus {
    outline: none;
    border-color: var(--tl-cobalt);
    box-shadow: 0 0 0 4px rgba(27, 119, 201, .16);
}
.tl-field input.is-invalid { border-color: var(--tl-bad-ink); box-shadow: 0 0 0 4px rgba(155, 28, 28, .10); }

.tl-pass { position: relative; }
.tl-pass input { padding-right: 76px; }
.tl-reveal {
    position: absolute;
    top: 6px;
    right: 6px;
    height: 36px;
    min-width: 60px;
    padding: 0 12px;
    font: 600 13px/1 var(--tl-font);
    color: var(--tl-cobalt-dk);
    background: transparent;
    border: 0;
    border-radius: 9px;
    cursor: pointer;
    transition: background-color .2s ease;
}
.tl-reveal:hover { background: rgba(27, 119, 201, .08); }
.tl-reveal:focus-visible { outline: 2px solid var(--tl-cobalt); outline-offset: 1px; }

.tl-caps {
    margin: 8px 0 0;
    font-size: 13px;
    font-weight: 500;
    color: #7A4A00;
}

.tl-submit {
    width: 100%;
    height: 50px;
    margin-top: 8px;
    font: 600 15.5px/1 var(--tl-font);
    color: #FFFFFF;
    background: var(--tl-cobalt);
    border: 0;
    border-radius: var(--tl-radius-sm);
    cursor: pointer;
    box-shadow: 0 6px 16px -6px rgba(27, 119, 201, .55);
    transition: background-color .2s ease, transform .15s ease, box-shadow .2s ease;
}
.tl-submit:hover { background: var(--tl-cobalt-dk); }
.tl-submit:active { transform: translateY(1px); box-shadow: 0 3px 10px -6px rgba(27, 119, 201, .55); }
.tl-submit:focus-visible { outline: 3px solid rgba(27, 119, 201, .35); outline-offset: 2px; }
.tl-submit.is-busy, .tl-submit:disabled { background: var(--tl-cobalt-dk); cursor: progress; }

.tl-back { margin: 22px 0 0; font-size: 13.5px; }
.tl-back a { color: var(--tl-cobalt-dk); font-weight: 600; text-decoration: none; }
.tl-back a:hover { text-decoration: underline; }
.tl-back a:focus-visible { outline: 2px solid var(--tl-cobalt); outline-offset: 3px; border-radius: 4px; }

/* ----- Phone and narrow tablet: the panel becomes a band ----- */
@media (max-width: 860px) {
    .tl-shell { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
    .tl-brand { padding: 22px 16px 26px; }
    .tl-logo img { width: 168px; }
    .tl-brand-copy { margin-top: 18px; }
    .tl-kicker { margin-bottom: 6px; font-size: 11.5px; }
    .tl-brand-line { font-size: 17px; }
    .tl-brand-foot { display: none; }
    .tl-main { justify-content: flex-start; padding: 24px 16px 32px; }
    .tl-card { padding: 28px 20px 24px; }
    .tl-title { font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; }
}
