/* auth area: page-specific styles only (shared styles live in ui.css). ICON Ledger look.
   Login and Create Your Business (views/pages/login, views/pages/signup): indigo panel on the left with the product
   name and one neutral line (never a business's name: the page is shared by every business), the form on the right;
   the panel becomes a short header on phones.
   Change Password (views/pages/account/password.ejs): a centred card under a plain top bar when a temporary password
   must be changed (no menu), or a normal page inside the menu frame when the user opens it themselves. */

/* ---------- login, sign-up */
.auth-split{display:flex;align-items:stretch;min-height:100vh}
.auth-brand{flex:0 0 560px;max-width:42%;background:var(--navy);color:#fff;padding:40px 48px;display:flex;flex-direction:column;justify-content:center;gap:32px;position:relative}
.auth-product{display:flex;align-items:center;gap:12px;font-family:var(--font-head);font-size:var(--fs-lg);font-weight:600;letter-spacing:var(--ls-head);color:#fff;white-space:nowrap}
.auth-product img,.auth-product svg{flex:none;width:36px;height:36px;border-radius:12px;display:block}
.auth-org{min-width:0;display:flex;flex-direction:column;gap:18px}
.auth-mark{width:84px;height:84px;border-radius:20px;overflow:hidden;background:#fff;flex:none}
.auth-mark img{display:block;width:100%;height:100%}
.auth-org-name{font-family:var(--font-head);font-size:var(--fs-2xl);font-weight:600;letter-spacing:var(--ls-head);line-height:var(--lh-tight);color:#fff;overflow-wrap:anywhere}
.auth-tagline{margin:0;max-width:400px;font-size:var(--fs-md);line-height:var(--lh-body);color:rgb(255 255 255/.88)}
.auth-vendor{position:absolute;left:48px;bottom:40px;font-size:var(--fs-sm);color:rgb(255 255 255/.8)}
.auth-brand :focus-visible{outline-color:#fff}
.auth-main{flex:1 1 420px;display:flex;align-items:center;justify-content:center;padding:48px 24px}
.auth-form{width:100%;max-width:400px;display:flex;flex-direction:column;gap:20px}
.auth-form h1{font-size:var(--fs-2xl)}
.auth-lead{margin:6px 0 0;font-size:var(--fs-base)}
.auth-form .lab,.auth-cp .lab{font-size:var(--fs-base);margin-bottom:8px}
.auth-form .inp,.auth-cp .inp{height:40px;font-size:var(--fs-base)}
.auth-form .inp{background:#fff}
/* message bars: icon and text stay on one row, a long message wraps beside the icon (not under it) */
.auth-alert,.auth-cp .notice{flex-wrap:nowrap;align-items:flex-start}
.auth-alert svg,.auth-cp .notice svg{margin-top:1px}
.auth-alert span,.auth-cp .notice span{min-width:0}
#cp-done:focus{outline:none}                           /* focused only so screen readers read it; not a control */
.auth-pw{display:flex;gap:8px}
.auth-pw .inp{flex:1 1 auto;min-width:0}
.auth-pw .inp::-ms-reveal{display:none}               /* Edge adds its own eye icon; this field has the Show button */
.auth-show{flex:none;min-width:64px;height:40px;padding:0 14px;border:1px solid var(--line);border-radius:var(--r-sm);background:var(--bg);color:var(--text);font-size:var(--fs-base);font-weight:500;cursor:pointer}
.auth-show:hover{background:var(--hover);border-color:var(--field)}
.auth-submit{width:100%;min-height:44px}
.auth-submit[aria-busy="true"]{cursor:progress}
.auth-foot{margin:0;text-align:center;font-size:var(--fs-sm)}
.auth-alt{border-top:1px solid var(--line);padding-top:16px}
.auth-alt a{font-weight:600}
/* sign-up: a field only robots fill in (kept out of sight and out of the tab order) */
.auth-trap{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}

/* ---------- change password */
.auth-top{min-height:var(--top-h);background:var(--surface);border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 24px}
.auth-top .auth-product{color:var(--text)}
.auth-center{display:flex;justify-content:center;padding:56px 16px 48px}
.auth-card{width:100%;max-width:480px;align-self:flex-start;box-shadow:0 1px 3px 0 rgb(0 0 0/.05)}
.auth-card .pb{padding:28px;gap:18px}
.auth-cp{display:flex;flex-direction:column;gap:18px;margin:0}
.auth-cp h1{margin:0}
.auth-rules{list-style:none;margin:-6px 0 0;padding:12px 14px;display:flex;flex-direction:column;gap:6px;background:hsl(var(--muted-h)/.5);border-radius:10px}
.auth-rule{display:flex;align-items:center;gap:8px;font-size:var(--fs-sm);color:var(--muted)}
.auth-rule svg{flex:none}
.auth-rule .yes{display:none}
.auth-rule.ok{color:var(--in)}
.auth-rule.ok .yes{display:block}
.auth-rule.ok .no{display:none}
.auth-actions{display:flex;justify-content:flex-end;gap:8px}
.auth-page .auth-actions .btn{width:100%;min-height:44px}
.auth-note{margin:0}

/* ---------- phones: the indigo panel becomes a short header above the form */
@media (max-width:860px){
  .auth-split{flex-direction:column}
  .auth-brand{flex:none;max-width:none;padding:14px 16px;gap:0}
  .auth-org{flex-direction:row;align-items:center;gap:12px}
  .auth-mark{width:36px;height:36px;border-radius:12px}
  .auth-org-name{font-size:var(--fs-lg)}
  .auth-tagline,.auth-vendor{display:none}
  .auth-main{flex:1 0 auto;align-items:flex-start;padding:28px 16px 40px}
  .auth-form{max-width:480px}
  .auth-form h1{font-size:var(--fs-xl)}
  .auth-top{min-height:56px;padding:0 16px}
  .auth-center{padding:20px 16px 40px}
  .auth-card .pb{padding:18px}
}
@media (max-width:640px){
  .auth-form .inp,.auth-cp .inp{font-size:var(--fs-md)}     /* 16px: iPhone Safari zooms the page on smaller fields */
}
