/* ===================================================================================
   UpKeep -- login
   -----------------------------------------------------------------------------------
   The login page renders with Layout = null, so it shares no chrome with the rest of
   the app and none of AdminLTE's .login-box styling applies here any more.  It is on
   its own, which is why this file is self-contained rather than an override layer.

   Same palette as the shell: the brand panel is the logo cube's darkest face, the
   accent is the midpoint of the cube's two darker blues.
   =================================================================================== */

:root {
    --uk-brand:    #03497c;
    --uk-brand-2:  #023459;
    --uk-accent:   #026a9e;
    --uk-accent-2: #025782;
    --uk-cyan:     #42c0f0;
    --uk-ground:   #f7f7f5;
    --uk-surface:  #ffffff;
    --uk-ink:      #16181d;
    --uk-muted:    #85837a;
    --uk-faint:    #c2bfb7;
    --uk-hairline: #eae7e1;
    --uk-danger:   #c2410c;
}

*, *::before, *::after { box-sizing: border-box; }

html, body { height: 100%; }

body {
    margin: 0;
    background: var(--uk-ground);
    color: var(--uk-ink);
    font-family: 'IBM Plex Sans', 'Source Sans Pro', 'Segoe UI', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.uk-login { display: flex; min-height: 100vh; }

/* ---- brand panel ----------------------------------------------------------------- */
.uk-login-brand {
    flex: 0 0 30%;
    background: var(--uk-brand);
    background-image: radial-gradient(120% 90% at 15% 0%, rgba(66, 192, 240, 0.16), transparent 60%);
    color: #f8fafd;
    padding: 44px 40px 36px 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.uk-login-mark { display: flex; align-items: center; gap: 14px; }
.uk-login-mark > img { height: 38px; width: auto; display: block; }
.uk-login-mark > span { font-size: 23px; font-weight: 600; letter-spacing: -0.4px; }

/* No max-width: the panel's own 40px padding sets the measure (~300px at 1280), which
   is a better line length here than a ch value resolved against the container's font
   rather than the heading's. */
.uk-login-pitch { max-width: none; }
.uk-login-pitch > h1 {
    margin: 0 0 13px 0;
    font-size: 28px; line-height: 1.22; font-weight: 600; letter-spacing: -0.6px;
}
.uk-login-pitch > p { margin: 0; font-size: 14.5px; line-height: 1.6; color: #a6bcdd; }

.uk-login-foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.uk-login-foot > span {
    font-size: 11px; letter-spacing: .5px; text-transform: uppercase; color: #7f9dc4;
    white-space: nowrap;
}
.uk-login-foot > a { display: inline-block; line-height: 0; }
.uk-login-foot img { height: 23px; width: auto; display: block; }

/* ---- form panel ------------------------------------------------------------------ */
.uk-login-panel {
    flex: 1 1 auto;
    display: flex; align-items: center; justify-content: center;
    padding: 40px 24px;
}
.uk-login-form { width: 100%; max-width: 360px; }
.uk-login-form > h2 {
    margin: 0 0 6px 0; font-size: 25px; font-weight: 600; letter-spacing: -0.5px;
}
.uk-login-form > .uk-login-sub { margin: 0 0 28px 0; font-size: 14.5px; color: var(--uk-muted); }

.uk-field { margin-bottom: 16px; }
.uk-field > label {
    display: block; margin-bottom: 7px;
    font-size: 12px; letter-spacing: .4px; text-transform: uppercase;
    font-weight: 500; color: #99968d;
}
.uk-field > input {
    width: 100%; height: 42px;
    border: 1px solid #e3e0da; border-radius: 10px;
    padding: 0 14px; font: inherit; font-size: 15px; color: var(--uk-ink);
    background: var(--uk-surface);
    transition: border-color .12s, box-shadow .12s;
}
.uk-field > input::placeholder { color: var(--uk-faint); }
.uk-field > input:focus {
    outline: none;
    border-color: var(--uk-accent);
    box-shadow: 0 0 0 3px #e8f2f6;
}

.uk-login-row { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 22px 0; }
.uk-check { display: flex; align-items: center; gap: 9px; font-size: 14px; color: #56544e; cursor: pointer; }
.uk-check > input {
    width: 17px; height: 17px; margin: 0; cursor: pointer;
    accent-color: var(--uk-accent);
}

.uk-login-btn {
    width: 100%; height: 44px;
    border: 0; border-radius: 10px;
    background: var(--uk-accent); color: #fff;
    font: inherit; font-size: 15px; font-weight: 500;
    cursor: pointer;
    transition: background .12s;
}
.uk-login-btn:hover:not(:disabled) { background: var(--uk-accent-2); }
.uk-login-btn:disabled { opacity: .65; cursor: default; }

/* ---- failure message -------------------------------------------------------------
   The sign-in script already tried to write into .errorMsg; the element was simply
   never in the markup, so every failure fell through to an alert() instead.         */
.errorMsg {
    display: none;
    margin-bottom: 18px; padding: 11px 14px;
    border: 1px solid #f3d8cc; border-radius: 10px;
    background: #fdf1ec; color: var(--uk-danger);
    font-size: 14px; line-height: 1.45;
}
.errorMsg.is-shown { display: block; }

/* ---- product credit --------------------------------------------------------------
   Only shown inside the form panel on narrow screens, where the brand panel that
   normally carries it has collapsed to a strip.                                     */
.uk-login-credit { margin-top: 30px; text-align: center; font-size: 13px; color: var(--uk-muted); }
.uk-login-credit a { color: var(--uk-muted); text-decoration: none; }
.uk-login-credit a:hover { color: var(--uk-ink); }
.uk-login-credit img { height: 26px; width: auto; vertical-align: middle; margin-left: 6px; }

@media (min-width: 901px) {
    .uk-login-credit { display: none; }
}

@media (max-width: 900px) {
    .uk-login { flex-direction: column; }
    .uk-login-brand {
        flex: 0 0 auto;
        padding: 22px 24px;
        flex-direction: row; align-items: center; justify-content: center;
    }
    .uk-login-pitch, .uk-login-foot { display: none; }
    .uk-login-mark > img { height: 34px; }
    .uk-login-mark > span { font-size: 21px; }
    .uk-login-panel { padding: 40px 24px 32px 24px; align-items: flex-start; }
}
