* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: var(--inventory-canvas); color: var(--inventory-text); font: 16px/1.5 "Segoe UI", Arial, sans-serif; }
header { display: flex; align-items: center; justify-content: space-between; background: var(--inventory-surface); padding: 16px clamp(20px, 5vw, 80px); border-bottom: 1px solid var(--inventory-border); }
header img { width: 142px; height: auto; display: block; }
header .sf-button { padding-inline: 18px; font-size: 14px; }
main { padding: clamp(44px, 13vh, 120px) 24px 48px; }
.recovery { display: grid; grid-template-columns: 1fr 1fr; max-width: 920px; margin: 0 auto; border: 1px solid var(--inventory-border); border-radius: 12px; background: var(--inventory-surface); }
.context, form { min-width: 0; padding: clamp(28px, 4vw, 52px); }
.context { background: var(--inventory-surface-soft); border-radius: 12px 0 0 12px; border-right: 1px solid var(--inventory-border); }
.step { margin: 0 0 12px; color: var(--inventory-action); font-size: 14px; font-weight: 600; }
h1 { margin: 0; font-size: clamp(28px, 3vw, 36px); line-height: 1.15; letter-spacing: -0.035em; font-weight: 600; }
.description { color: var(--inventory-text-muted); margin: 16px 0 0; overflow-wrap: anywhere; }
form { align-self: center; }
label { display: block; margin-bottom: 6px; font-weight: 600; }
.field { display: block; width: 100%; min-height: 46px; padding: 9px 12px; border: 1px solid var(--inventory-field-border); border-radius: 5px; color: inherit; background: var(--inventory-surface); font: inherit; }
.field:focus-visible, a:focus-visible { outline: 2px solid var(--inventory-action); outline-offset: 3px; }
#code { letter-spacing: .12em; }
.hint { display: block; margin: 6px 0 18px; color: var(--inventory-text-muted); font-size: 14px; }
.submit.sf-button { width: 100%; min-height: 44px; margin-top: 22px; font: 600 15px/1.4 "Segoe UI", Arial, sans-serif; }
.resend { margin: 16px 0 0; font-size: 14px; color: var(--inventory-text-muted); }
.resend a { color: var(--inventory-action); text-underline-offset: 3px; }
.error { color: var(--inventory-error-text); background: var(--inventory-error-surface); border-radius: 4px; margin: 0 0 16px; padding: 10px 12px; }
@media (max-width: 680px) {
    main { padding: 28px 16px; }
    .recovery { grid-template-columns: 1fr; max-width: 460px; }
    .context { border: 0; border-bottom: 1px solid var(--inventory-border); border-radius: 12px 12px 0 0; }
    .context, form { padding: 24px; }
}

.password-field { position: relative; }
#txtPassword { padding-right: 46px; }
#txtPassword::-ms-reveal { display: none; }
.password-toggle { position: absolute; inset: 1px 1px 1px auto; width: 44px; display: grid; place-items: center; border: 0; border-radius: 4px; background: transparent; color: var(--inventory-text-muted); cursor: pointer; }
.password-toggle:focus-visible { outline: 2px solid var(--inventory-action); }
#txtPassword[type="password"] + .password-toggle .eye-slash { display: none; }
.label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 16px; }
.label-row a, footer a { color: var(--inventory-action); text-underline-offset: 3px; }
.label-row a, .remember, footer { font-size: 14px; }
.remember { display: flex; align-items: center; gap: 8px; margin: 16px 0 0; font-weight: 400; }
.remember input { width: 16px; height: 16px; margin: 0; }
.success { padding: 10px 12px; color: var(--inventory-success-text); background: var(--inventory-success-surface); border-radius: 4px; }
footer { text-align: center; margin: 0 24px 32px; color: var(--inventory-text-muted); }

.password-dialog { max-width: 480px; margin: auto; padding: 24px; }
.password-dialog h1 { font-size: 24px; }
.password-dialog form { padding: 0; }
.password-dialog label { margin-top: 14px; }
