:root {
    color-scheme: dark;
    font-family: "Segoe UI", Arial, sans-serif;
    color: #f0f7ff;
    background-color: #041025;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
button, input { font: inherit; }

.sign-in {
    --form-width: 394px;
    display: grid;
    grid-template-rows: minmax(min-content, 1fr) auto;
    gap: 16px;
    justify-items: end;
    align-items: center;
    min-height: 100vh;
    min-height: 100svh;
    padding: 24px clamp(24px, 5vw, 96px) 18px;
    background: #041025 url("/assets/img/sign-in-logistics.jpg") center 18% / cover no-repeat;
}

.sign-in-panel {
    width: min(100%, var(--form-width));
    padding: clamp(22px, 2.5vw, 32px);
    border: 1px solid #5e94c94d;
    border-radius: 24px;
    background-color: #071a30ee;
    box-shadow: 0 20px 55px #0004;
}

.sign-in-brand {
    display: flex;
    align-items: center;
    gap: 11px;
}

.sign-in-brand-mark {
    display: block;
    flex: none;
    filter: brightness(1.9);
}
.sign-in-brand-name {
    margin: 0;
    font-size: clamp(20px, 2vw, 24px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -.02em;
}
.sign-in-company {
    margin: 5px 0 0;
    color: #b9d0e7;
    font-size: 13px;
    line-height: 1.4;
}

.sign-in-product {
    margin: 17px 0 12px;
    color: #c6d8ec;
    font-size: 13px;
    line-height: 1.4;
}

.sign-in-modes {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin: 0 0 15px;
    padding: 8px 0;
    border-block: 1px solid #6e9acc38;
    list-style: none;
}
.sign-in-modes li {
    display: grid;
    justify-items: center;
    gap: 5px;
    color: #c9ddef;
    font-size: clamp(10px, 1.05vw, 12px);
}
.sign-in-modes i { color: #80caff; font-size: 21px; }

#sign-in-form { display: grid; gap: 12px; }
.sign-in-form-row label {
    display: block;
    margin-bottom: 7px;
    color: #e4effb;
    font-size: 14px;
    font-weight: 600;
}
.sign-in-field {
    display: flex;
    align-items: center;
    gap: 11px;
    padding-inline: 13px;
    min-height: 51px;
    border: 1px solid #57799f;
    border-radius: 10px;
    background: #102a45;
}
.sign-in-field:focus-within {
    border-color: #84d2ff;
    box-shadow: 0 0 0 2px #68c6ff45;
}
.sign-in-field i { color: #b9d9f3; font-size: 21px; }
.sign-in-field input {
    flex: 1;
    width: 100%;
    min-width: 0;
    min-height: 49px;
    padding: 0;
    border: 0;
    outline: 0;
    color: #f5fbff;
    background: transparent;
    font-size: 16px;
}
#show-password {
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    border: 0;
    color: #a9ddff;
    background: transparent;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
.sign-in-error { margin: 0; color: #ffc3c3; font-size: 14px; }
.sign-in-error:empty { display: none; }
.sign-in-submit {
    min-height: 50px;
    border: 1px solid #5daeff;
    border-radius: 10px;
    background: linear-gradient(180deg, #166ebd, #12589e);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}
.sign-in-submit:hover:not(:disabled) { background: #166bb8; }
.sign-in-submit:disabled { opacity: .7; cursor: wait; }
button:focus-visible, summary:focus-visible { outline: 2px solid #9de8ff; outline-offset: 3px; }

.sign-in-help { margin-top: 15px; color: #a9ddff; font-size: 14px; }
.sign-in-help summary { width: fit-content; cursor: pointer; }
.sign-in-help p { margin: 7px 0 0; color: #c4def0; line-height: 1.5; }

.sign-in-copyright {
    width: min(100%, var(--form-width));
    color: #c6d8ec;
    text-align: center;
    font-size: 12px;
    line-height: 1.45;
}
.sign-in-copyright p { margin: 0; }

@media (max-width: 1100px) {
    .sign-in {
        --form-width: 368px;
        padding-inline: 24px;
        background-position: left 18%;
    }
}

@media (max-width: 680px), (max-width: 1000px) and (orientation: portrait) {
    .sign-in {
        --form-width: 390px;
        --art-width: max(100vw, 525px);
        justify-items: center;
        align-items: start;
        padding: clamp(150px, 29vw, 310px) 16px 20px;
        background-image: linear-gradient(180deg, transparent, #041025 92%), url("/assets/img/sign-in-logistics.jpg");
        background-size: 100% calc(var(--art-width) * 2 / 3), var(--art-width) auto;
        background-position: top, left top;
    }
    .sign-in-panel { padding: 22px clamp(16px, 5vw, 28px); }
    .sign-in-copyright { align-self: end; }
}

@media (max-height: 660px) and (min-width: 681px) and (orientation: landscape) {
    .sign-in { gap: 10px; padding-block: 16px 12px; }
    .sign-in-panel { padding-block: 20px; }
    .sign-in-product { margin-block: 13px 10px; }
    .sign-in-modes { margin-bottom: 12px; }
}
