/* v1.2.07 login screen */
:root {
    color-scheme: dark;
    --login-bg: #0d1215;
    --login-shell: #171d20;
    --login-panel: #22292d;
    --login-field: #0b1013;
    --login-line: #2c363b;
    --login-line-strong: #3b484f;
    --login-ink: #f7fbfb;
    --login-muted: #b8c7d1;
    --login-blue: #5aa0d8;
    --login-blue-soft: #9fc7e7;
    --login-teal: #5fd0bd;
    --login-danger: #ff8a7b;
    --login-danger-bg: rgba(255, 138, 123, .1);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    min-height: 100svh;
    margin: 0;
    display: grid;
    place-items: center;
    padding: 32px;
    color: var(--login-ink);
    background:
        radial-gradient(circle at 16% 10%, rgba(90, 160, 216, .16), transparent 28%),
        radial-gradient(circle at 88% 18%, rgba(95, 208, 189, .12), transparent 30%),
        linear-gradient(180deg, #131b1f 0%, var(--login-bg) 100%);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input {
    font: inherit;
}

.login-shell {
    width: min(805px, 100%);
    display: block;
    padding: clamp(28px, 5vw, 42px);
    overflow: hidden;
    color: var(--login-ink);
    background: linear-gradient(180deg, rgba(27, 34, 38, .98), var(--login-shell));
    border: 1px solid var(--login-line);
    border-radius: 32px;
    box-shadow: 0 32px 90px rgba(0, 0, 0, .34);
}

.brand-panel {
    min-height: auto;
    display: block;
    padding: 0 0 34px;
    color: var(--login-ink);
    background: transparent;
}

.brand-top {
    width: min(380px, 86vw);
    height: 70px;
    display: block;
    margin: 0 0 24px;
    background: transparent url("../branding/sagebrush-shipment-tracker-logo-transparent.png") left center / contain no-repeat;
}

.brand-top > * {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.panel-rule {
    display: none;
}

.panel-title {
    margin: 0;
    max-width: none;
    color: var(--login-ink);
    font-size: clamp(36px, 7vw, 42px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: 0;
}

.panel-foot {
    margin: 12px 0 0;
    max-width: 44rem;
    color: var(--login-muted);
    font-size: clamp(19px, 3vw, 25px);
    line-height: 1.35;
    font-weight: 500;
}

.form-panel {
    display: block;
    padding: clamp(26px, 4vw, 30px);
    background: var(--login-panel);
    border: 1px solid var(--login-line);
    border-radius: 28px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03);
}

.form-header {
    margin-bottom: 26px;
}

.form-header h1 {
    margin: 0;
    color: var(--login-ink);
    font-size: clamp(28px, 5vw, 32px);
    line-height: 1.1;
    font-weight: 850;
    letter-spacing: 0;
}

.lede {
    margin: 8px 0 0;
    color: var(--login-muted);
    font-size: 16px;
    font-weight: 500;
}

.login-shell .error {
    margin: 0 0 20px;
    padding: 13px 14px;
    color: var(--login-danger);
    background: var(--login-danger-bg);
    border: 1px solid rgba(255, 138, 123, .42);
    border-radius: 14px;
    font-weight: 750;
}

.field {
    margin-top: 24px;
}

.login-shell label {
    display: block;
    margin: 0 0 10px;
    color: var(--login-muted);
    font-size: 16px;
    font-weight: 600;
}

.input-wrap {
    position: relative;
}

.login-shell input {
    width: 100%;
    min-height: 62px;
    padding: 16px 18px;
    color: var(--login-ink);
    background: var(--login-field);
    border: 1px solid #0a0e10;
    border-radius: 16px;
    outline: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025);
    transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.login-shell input:hover {
    border-color: var(--login-line-strong);
    background: #0d1316;
}

.login-shell input:focus-visible {
    border-color: rgba(159, 199, 231, .78);
    box-shadow: 0 0 0 4px rgba(90, 160, 216, .16);
    background: #0d1316;
}

.password-input {
    padding-right: 82px !important;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 12px;
    width: auto;
    min-width: 58px;
    height: 38px;
    margin: 0;
    padding: 0 10px;
    transform: translateY(-50%);
    color: #d8e5ee;
    background: #78828c;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 8px;
    box-shadow: none;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.password-toggle:hover,
.password-toggle:focus-visible {
    color: #ffffff;
    background: #8b96a0;
    filter: none;
    outline: none;
    box-shadow: 0 0 0 4px rgba(139, 150, 160, .2);
    transform: translateY(-50%);
}

.submit-button {
    width: 100%;
    min-height: 68px;
    margin-top: 32px;
    color: #0b1013;
    background: linear-gradient(90deg, #4494d0 0%, var(--login-blue-soft) 100%);
    border: 0;
    border-radius: 18px;
    box-shadow: none;
    font-size: 17px;
    font-weight: 850;
    cursor: pointer;
    transition: filter .16s ease, transform .16s ease;
}

.submit-button:hover {
    filter: brightness(1.04);
    transform: translateY(-1px);
}

.submit-button:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(90, 160, 216, .2);
}

.help-text {
    margin: 22px 0 0;
    color: var(--login-muted);
    font-size: 15px;
    line-height: 1.45;
    font-weight: 500;
}

@media (max-width: 640px) {
    body {
        align-items: start;
        padding: 18px;
    }

    .login-shell {
        border-radius: 26px;
    }

    .form-panel {
        border-radius: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }

    .submit-button:hover {
        transform: none;
    }
}
