/* Authentication screens share the warehouse identity and keep the STC font used by the warehouse. */
.auth-body {
    display: grid;
    min-height: 100vh;
    min-height: 100dvh;
    place-items: center;
    padding: 24px;
    background: radial-gradient(circle at top right, #2b686a 0, #173c3d 35%, #102a2b 100%);
    font-family: 'STC Local', Tahoma, Arial, sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
}
.auth-body .auth-shell {
    display: block;
    width: min(100%, 460px);
    min-height: 0;
    padding: 0;
    background: none;
}
.auth-body .auth-card {
    width: 100%;
    max-width: none;
    padding: 32px;
    border: 1px solid rgb(255 255 255 / 20%);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 24px 70px rgb(4 22 23 / 35%);
}
.auth-body .auth-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e4ebeb;
}
.auth-body .auth-company-logo {
    flex: 0 0 58px;
    width: 58px;
    height: 58px;
    margin: 0;
    padding: 3px;
    object-fit: contain;
    border: 1px solid #d5bd85;
    border-radius: 12px;
    background: #fff;
}
.auth-body .auth-brand > div { min-width: 0; }
.auth-body .auth-brand h1 {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 1.15rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
}
.auth-body .auth-brand p {
    margin: 4px 0 0;
    color: #738485;
    font-size: .85rem;
    overflow-wrap: anywhere;
}
.auth-intro { margin-bottom: 24px; }
.auth-intro h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 24px; }
.auth-intro p { margin: 0; color: #738485; font-size: 14px; }
.auth-icon { display: inline-block; width: 20px; height: 20px; flex: none; vertical-align: middle; }
.auth-icon[hidden] { display: none; }
.auth-body .auth-field { margin-bottom: 16px; }
.auth-body .auth-field label { display: block; margin: 0 0 8px; }
.auth-input-wrap { position: relative; }
.auth-body .auth-input-wrap input {
    min-width: 0;
    min-height: 48px;
    padding: 10px 42px;
    border: 1px solid #d5dfdf;
    border-radius: 9px;
    font-size: 16px;
    font-weight: 700;
}
.auth-body .auth-input-wrap input:focus {
    border-color: #2f7779;
    box-shadow: 0 0 0 3px rgb(47 119 121 / 12%);
}
.auth-input-icon {
    position: absolute;
    z-index: 1;
    inset-inline-start: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #69807e;
    pointer-events: none;
}
.auth-body .auth-password-toggle {
    position: absolute;
    z-index: 1;
    inset-inline-end: 9px;
    top: 50%;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #587371;
}
.auth-body .auth-password-toggle:hover { background: #eaf2f1; color: #205052; }
.auth-body .auth-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 48px;
    margin-top: 24px;
    padding: 12px 16px;
    border: 1px solid #205052;
    border-radius: 9px;
    background: #205052;
    font-size: 18px;
}
.auth-body .auth-submit:hover { border-color: #173c3d; background: #173c3d; }
.auth-recovery { margin-top: 16px; text-align: end; font-size: 13px; }
.auth-help { margin: 16px 0; color: #607474; font-size: 13px; font-weight: 400; }
.auth-body .auth-input-wrap:has(.password-toggle) input { padding-inline-end: 80px; padding-inline-start: 12px; }
.auth-body .auth-input-wrap .password-toggle { top: 5px; min-height: 36px; padding: 6px 10px; }
.auth-back { display: block; margin-top: 20px; text-align: center; font-size: 14px; }
.auth-body .auth-footer { margin: 16px 0 0; color: rgb(255 255 255 / 70%); text-align: center; font-size: 12px; }
.auth-body .errors, .auth-body .status { margin-bottom: 20px; font-size: 14px; }
.auth-body .auth-input-wrap .field-error { position: relative; margin: 6px 0 0; }
.auth-input-wrap:has(.field-error) .auth-input-icon,
.auth-input-wrap:has(.field-error) .auth-password-toggle { top: 24px; }
@media (max-width: 420px) {
    .auth-body { padding: 16px; }
    .auth-body .auth-card { padding: 24px; }
    .auth-body .auth-brand { gap: 12px; }
    .auth-body .auth-brand h1 { font-size: 17px; }
    .auth-body .auth-brand p { font-size: 12px; }
}
