:root {
    --PageBackground: #f3f6fb;
    --CardBackground: #ffffff;
    --Primary: #0f6cbd;
    --PrimaryHover: #115ea3;
    --Border: #c8d1dc;
    --BorderHover: #9fb0c3;
    --Text: #1f2937;
    --Muted: #6b7280;
    --Error: #b42318;
}

html,
body {
    margin: 0;
    min-height: 100%;
    font-family: "Segoe UI", Arial, sans-serif;
    color: var(--Text);
    background: var(--PageBackground);
}

.login-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 1.5rem;
}

.login-card {
    width: min(100%, 420px);
    background: var(--CardBackground);
    border: 1px solid #d7dde6;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.login-logo {
    display: block;
    max-width: 180px;
    width: 100%;
    height: auto;
    margin: 0 auto 1rem;
}

h1 {
    margin: 0 0 .4rem;
    font-size: 1.95rem;
    font-weight: 600;
    letter-spacing: -.01em;
}

.subtitle {
    margin: 0 0 1.4rem;
    color: var(--Muted);
}

.field {
    margin-bottom: .95rem;
}

label {
    display: inline-block;
    margin-bottom: .4rem;
    font-size: .95rem;
    font-weight: 600;
}

.text-input {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid var(--Border);
    border-radius: 8px;
    padding: .68rem .78rem;
    font-size: .95rem;
    line-height: 1.35;
    color: var(--Text);
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.text-input:hover {
    border-color: var(--BorderHover);
}

.text-input:focus {
    border-color: var(--Primary);
    outline: 2px solid rgba(15, 108, 189, 0.18);
    outline-offset: 1px;
}

.remember {
    margin: .5rem 0 1rem;
}

.remember-label {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    margin-bottom: 0;
    font-size: .94rem;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
}

.remember-input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.remember-box {
    width: 18px;
    height: 18px;
    border: 1.5px solid #9ca3af;
    border-radius: 4px;
    background: #fff;
    position: relative;
    transition: border-color .15s ease, background-color .15s ease;
}

.remember-input:focus + .remember-box {
    outline: 2px solid rgba(15, 108, 189, 0.2);
    outline-offset: 2px;
}

.remember-input:checked + .remember-box {
    border-color: var(--Primary);
    background: var(--Primary);
}

.remember-input:checked + .remember-box::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.submit {
    width: 100%;
    border: none;
    border-radius: 8px;
    padding: .72rem .9rem;
    font-weight: 600;
    background: var(--Primary);
    color: #fff;
    cursor: pointer;
}

.submit:hover:not(:disabled) {
    background: var(--PrimaryHover);
}

.submit:disabled {
    opacity: .75;
    cursor: default;
    background: #EEE;
}

.validation-message,
.error {
    display: block;
    margin-top: .35rem;
    color: var(--Error);
    font-size: .86rem;
}

.not-found {
    min-height: 100vh;
    display: grid;
    place-content: center;
    gap: .5rem;
    text-align: center;
    padding: 1.5rem;
}