/* Login view only. The shared dashboard layout supplies the site font. */
body#page-login .innerShape {
    background: linear-gradient(155deg, #58a9bd 0%, #347e92 100%);
    min-height: 100vh;
    min-height: 100svh;
}

.atom-login,
.atom-login * {
    box-sizing: border-box;
}

.atom-login {
    --ink: #373e4c;
    --accent: #156b80;
    --edge: #cbd5dc;
    width: 100%;
    padding: clamp(20px, 5vw, 56px) 16px;
    color: var(--ink);
    line-height: 1.45;
}

.atom-login .atom-login__card {
    width: 100%;
    max-width: 490px;
    margin: 0 auto;
    padding: clamp(24px, 5vw, 46px);
    border: 1px solid #e2e8eb;
    border-radius: 23px;
    background: #fff;
    box-shadow: 0 18px 48px rgb(23 65 77 / 16%);
}

.atom-login .atom-login__brand {
    display: block;
    width: 100px;
    margin: 0 auto 24px;
}

.atom-login__brand img {
    display: block;
    width: 100%;
    height: auto;
}

.atom-login h1 {
    margin: 0 0 20px;
    color: var(--ink);
    font-size: clamp(23px, 3.4vw, 29px);
    line-height: 1.2;
    text-align: center;
    font-weight: 500;
    letter-spacing: -.025em;
}

.atom-login__sites {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    margin-bottom: 24px;
    padding: 4px;
    border: 1px solid #d6e1e5;
    border-radius: 12px;
    background: #f5f8fa;
}

.atom-login__sites a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 6px;
    color: var(--ink);
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
}

.atom-login__sites a:hover {
    background: #e8eff2;
}

.atom-login__sites a[aria-current] {
    border-color: #4291a4;
    background: #e1f3f7;
    color: #145e70;
}

.atom-login__flag {
    flex: none;
    width: 26px;
    height: auto;
    overflow: hidden;
    border-radius: 1px;
}

.atom-login__tick {
    width: 7px;
    height: 12px;
    margin: -3px 2px 0 1px;
    border: solid currentColor;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.atom-login__form {
    display: grid;
    gap: 16px;
    margin: 0;
}

.atom-login__field label {
    display: block;
    margin: 0 0 6px;
    color: var(--ink);
    font-size: 15px;
    font-weight: 500;
}

.atom-login__field input {
    display: block;
    width: 100%;
    min-width: 0;
    height: 47px;
    padding: 0 14px;
    border: 1px solid var(--edge);
    border-radius: 8px;
    background: #f6f9fc;
    color: #202733;
    font: inherit;
    font-size: 16px;
}

.atom-login__field input[aria-invalid] {
    border-color: #ae2732;
}

.atom-login .atom-login__error {
    margin: 5px 0 0;
    color: #9c2632;
    font-size: 14px;
}

.atom-login .atom-login__remember {
    display: inline-flex;
    align-items: center;
    justify-self: start;
    gap: 9px;
    margin: 0;
    font-size: 15px;
	font-weight: 500;
    cursor: pointer;
}

.atom-login__remember input[type="checkbox"] {
    position: static;
    appearance: auto;
    width: 17px;
    height: 17px !important; /* atom.css sets a shared input height with !important. */
    min-height: 0;
    margin: 0;
    padding: 0;
    accent-color: var(--accent);
}

.atom-login .atom-login__submit {
    justify-self: center;
    min-width: min(178px, 100%);
    min-height: 48px;
    padding: 10px 28px;
    border: 0;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.atom-login__submit:hover {
    background: #10576a;
}

.atom-login .atom-login__reset {
    justify-self: center;
    color: var(--ink);
    font-size: 15px;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.atom-login :is(a, button, input):focus-visible {
    outline: 3px solid #176d85;
    outline-offset: 3px;
}

@media (max-width: 380px) {
    .atom-login .atom-login__card { padding-inline: 18px; }
    .atom-login__sites a { gap: 5px; }
    .atom-login__flag { width: 22px; }
}
