@font-face {
    font-family: 'Plus Jakarta Sans';
    src: url('../fonts/plus-jakarta-sans.woff2') format('woff2');
    font-weight: 400 800;
    font-display: swap;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    background: #fff;
    color: #152c3c;
    font: 1rem/1.55 'Plus Jakarta Sans', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
}
p { margin: 0; }
button, input { font: inherit; }
:focus-visible { outline: 3px solid #16828e; outline-offset: 3px; }

.auth-shell {
    min-height: 100vh;
    min-height: 100svh;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    padding: clamp(14px, 1.6vw, 28px);
}
.auth-cover {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(28px, 4vw, 72px);
    border-radius: 22px;
    color: #fff;
    background: linear-gradient(180deg, #081d32a8, #081d3208 32%, #081d3233 49%, #06182bf5),
                #11283a url('../img/auth-warehouse.webp') center / cover;
}
.brand { align-self: flex-start; padding: 2px 8px; border-radius: 12px; background: #fff; text-decoration: none; display: inline-block; }
.brand img { display: block; width: 240px; max-width: 100%; height: auto; }
.cover-caption { padding-top: 140px; }
.cover-headline { font-size: clamp(2rem, 4.25vw, 4.5rem); font-weight: 700; line-height: 1.14; letter-spacing: -.05em; }
.cover-headline em { color: #91e7ee; font-style: normal; }
.cover-description { max-width: 43ch; margin-top: 22px; color: #e4edf2; font-size: .9375rem; line-height: 1.75; text-wrap: pretty; }

.auth-content {
    display: grid;
    grid-template-rows: 1fr auto 1fr;
    justify-items: center;
    padding: 24px clamp(24px, 5vw, 92px) 12px;
}
.auth-lang-bar { grid-row: 1; justify-self: end; align-self: start; }
.auth-lang-switcher {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 3px;
    border: 1px solid #d4dee5;
    border-radius: 8px;
    background: #f6f9fb;
}
.auth-lang-btn {
    min-width: 34px;
    min-height: 32px;
    padding: 4px 9px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #536776;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .03em;
    cursor: pointer;
}
.auth-lang-btn:hover { background: #e8f1f5; color: #152c3c; }
.auth-lang-btn.active { background: #075777; color: #fff; }
main { grid-row: 2; width: min(100%, 410px); padding-block: 24px; }
h1 { margin: 0; font-size: clamp(1.8rem, 2.7vw, 2.6rem); font-weight: 750; letter-spacing: -.055em; line-height: 1.15; text-wrap: balance; }
.intro { margin: 10px 0 30px; color: #536776; font-size: .95rem; }
form, .field { display: grid; }
form { gap: 17px; }
.field { gap: 7px; }
label { font-size: .875rem; font-weight: 650; }
.field input {
    width: 100%;
    min-height: 48px;
    padding: 10px 14px;
    border: 1px solid #889aa7;
    border-radius: 9px;
    background: #fff;
    color: #152c3c;
}
.field input::placeholder { color: #667886; }
.field input:focus { border-color: #076681; outline: 3px solid #c7eaf0; outline-offset: 0; }
.password-field { position: relative; }
.password-field input { padding-right: 50px; }
.password-toggle {
    position: absolute;
    inset: 2px 2px 2px auto;
    width: 44px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #516977;
    cursor: pointer;
}
.password-toggle svg { vertical-align: middle; }
.password-toggle:hover { background: #edf5f7; }
.password-toggle[aria-pressed="false"] .eye-slash { display: none; }
small { color: #536776; font-size: .8rem; }
.remember { display: inline-flex; align-items: center; gap: 9px; min-height: 36px; justify-self: start; font-weight: 500; cursor: pointer; }
.remember input { margin: 0; width: 17px; height: 17px; accent-color: #075777; }
.submit {
    position: relative;
    min-height: 49px;
    padding: 10px 42px;
    border: 0;
    border-radius: 9px;
    background: #075777;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}
.submit:hover { background: #07445f; }
.submit span { position: absolute; right: 17px; top: 50%; transform: translateY(-50%); font-size: 1.25rem; }
.switch-page { margin-top: 24px; padding-top: 21px; border-top: 1px solid #dde5e9; color: #536776; font-size: .875rem; text-align: center; }
.switch-page a { color: #075777; font-weight: 700; text-underline-offset: 3px; }
.auth-error { margin-bottom: 20px; padding: 12px 15px; background: #fff1ed; border-left: 3px solid #bd4b2a; border-radius: 6px; color: #83351f; font-size: .875rem; }
footer { grid-row: 3; align-self: end; color: #647581; font-size: .75rem; }

@media (max-width: 760px) {
    .auth-shell { grid-template-columns: 1fr; grid-template-rows: auto 1fr; padding: 12px; }
    .auth-cover { min-height: 98px; justify-content: center; border-radius: 15px; padding: 20px 24px; background-position: center, center 42%; background-image: linear-gradient(90deg, #081d32e8, #081d3226), url('../img/auth-warehouse.webp'); }
    .brand { padding: 0 6px; border-radius: 9px; }
    .brand img { width: 192px; }
    .cover-caption { display: none; }
    .auth-content { grid-template-rows: auto auto 1fr; padding: 10px 10px 7px; }
    .auth-lang-bar { grid-row: 1; }
    main { grid-row: 2; padding-block: 24px; }
    footer { grid-row: 3; }
}
