/* Login and registration: an editorial image and a focused form. */
body.layout-card:has(.account-modern) { background:var(--color-bg); }
body.layout-card:has(.auth-page) .account-shell.account-modern { display:grid; grid-template-columns:minmax(0, .95fr) minmax(0, 1.05fr); align-items:stretch; padding:18px; gap:0; overflow:visible; min-height:calc(100svh - 80px); }
body.layout-card .account-modern .account-visual { position:relative; inset:auto; display:block; border-radius:28px; min-height:640px; overflow:hidden; }
body.layout-card .account-modern .account-visual img { position:absolute; inset:0; height:100%; width:100%; object-fit:cover; filter:saturate(.55); }
body.layout-card .account-modern .account-visual::after { background:linear-gradient(180deg, #102a2020 0%, #102a2060 35%, #102a20f2 100%); }
body.layout-card .account-modern .account-visual-copy { display:block; position:absolute; inset:auto 10% 9%; max-width:560px; color:#fff; z-index:1; }
body.layout-card .account-modern .account-visual-copy .eyebrow { color:#d5f879; font-size:.7rem; letter-spacing:.19em; margin-bottom:24px; }
body.layout-card .account-modern .account-visual-lead { font-family:var(--font-sans); font-size:clamp(2.3rem,4.2vw,4.7rem); font-weight:600; line-height:1.08; letter-spacing:-.055em; margin:0 0 24px; }
.account-modern .account-visual-lead em { font-style:normal; color:#d5f879; }
body.layout-card .account-modern .account-visual-note { color:#d6e1da; font-size:1.05rem; line-height:1.7; max-width:330px; }
.account-visual-tags { display:flex; flex-wrap:wrap; gap:10px; margin-top:30px; }
.account-visual-tags span { padding:8px 14px; border:1px solid #ffffff40; border-radius:999px; color:#edf2ee; font-size:.75rem; background:#ffffff08; }
body.layout-card .account-modern .account-panel { width:100%; margin:0; padding:14px clamp(24px,5vw,80px) 28px; display:flex; align-items:stretch; justify-content:center; }
body.layout-card .account-modern .account-bar { display:flex; justify-content:space-between; align-items:center; gap:16px; padding:8px 0 40px; margin-bottom:auto; }
body.layout-card .account-modern .account-bar .brand { display:inline-flex; align-items:center; gap:9px; color:var(--color-text); font-size:.95rem; }
.account-modern .account-home { display:inline-flex; align-items:center; gap:8px; min-height:44px; color:var(--color-text-muted); font-size:.8rem; text-decoration:none; white-space:nowrap; }
body.layout-card .account-modern main:has(.auth-page) { width:100%; max-width:430px; padding:12px 0 32px; margin:auto; border:0; border-radius:0; background:transparent; box-shadow:none; }
.account-modern .auth-welcome-icon { display:grid; place-items:center; width:50px; height:50px; border:1px solid var(--color-border); border-radius:16px; color:var(--color-accent); background:var(--color-surface); margin-bottom:24px; box-shadow:var(--shadow-surface); }
.account-modern .auth-page .eyebrow { color:var(--color-text-muted); font-size:.65rem; letter-spacing:.16em; text-transform:uppercase; margin-bottom:8px; }
.account-modern .auth-page h1 { font-size:clamp(2rem,3.5vw,3rem); font-weight:600; letter-spacing:-.055em; line-height:1.12; margin-bottom:12px; }
.account-modern .auth-lead { font-size:.95rem; max-width:360px; margin-bottom:28px; }
.account-modern .auth-main-form { display:grid; gap:18px; margin:0; }
.account-modern .ui-field { margin:0; min-width:0; }
.account-modern .ui-field > label { display:block; font-size:.8rem; font-weight:600; margin-bottom:8px; }
.account-modern .ui-field > label > span { color:var(--color-text-muted); }
.account-modern .ui-field input { width:100%; height:52px; padding:12px 14px; border:1px solid var(--color-border); border-radius:12px; background:var(--color-surface); color:var(--color-text); font-size:1rem; box-shadow:var(--shadow-surface); }
.account-modern .ui-field input:focus { border-color:var(--color-accent); outline:3px solid var(--color-accent-soft); outline-offset:1px; }
.account-modern .ui-field.has-error input { border-color:var(--color-danger); }
.account-modern .ui-field-password { position:relative; display:block; }
.account-modern .ui-field-password input { min-width:0; padding-right:76px; }
.account-modern .ui-password-toggle { position:absolute; right:4px; top:4px; width:auto; font-size:.75rem; padding:8px 12px; min-height:44px; border-radius:10px; }
.account-modern .hint { font-size:.73rem; line-height:1.5; margin-top:7px; }
.account-modern .auth-forgot { justify-self:end; font-size:.8rem; font-weight:600; margin-top:-6px; text-underline-offset:4px; }
body.layout-card .account-modern .auth-main-form > .ui-button-primary { min-height:52px; border-radius:12px; background:var(--store-btn); color:var(--store-on-btn); border-color:var(--store-btn); font-size:.95rem; font-weight:600; margin:0; box-shadow:var(--shadow-surface); }
body.layout-card .account-modern .auth-main-form > .ui-button-primary:hover { background:var(--store-btn-hover); transform:translateY(-1px); }
.account-modern .auth-links { display:flex; justify-content:center; gap:6px; padding-top:22px; border-top:1px solid var(--color-border); font-size:.85rem; color:var(--color-text-muted); }
.account-modern .auth-links a { font-weight:600; text-underline-offset:4px; }
.auth-dev-tools { margin:22px 0; border:1px dashed var(--color-border); border-radius:10px; padding:10px 12px; font-size:.75rem; color:var(--color-text-muted); }
.auth-dev-tools summary { cursor:pointer; min-height:24px; }
.auth-dev-tools .dev-login { padding-top:12px; }
.account-modern .auth-mode-register .auth-main-form { grid-template-columns:1fr 1fr; gap:16px; }
.account-modern .auth-mode-register .auth-main-form > * { grid-column:1 / -1; }
.account-modern .auth-mode-register .ui-field:has(#first_name), .account-modern .auth-mode-register .ui-field:has(#last_name) { grid-column:auto; }
.account-modern .auth-mode-register .auth-welcome-icon { margin-bottom:16px; width:42px; height:42px; }
body.layout-card:has(.account-modern) .site-footer { margin:0; background:var(--color-bg); }
body.layout-card:has(.account-modern) .footer-bar { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px; min-height:64px; padding:8px 32px; width:100%; max-width:1600px; margin:auto; }
body.layout-card:has(.account-modern) .footer-copy { margin:0; font-size:.75rem; }
body.layout-card:has(.account-modern) .footer-copy, body.layout-card:has(.account-modern) .theme-control { color:var(--color-text-muted); }
@media (min-width:1600px) { body.layout-card:has(.auth-page) .account-shell.account-modern { max-width:1600px; width:100%; margin:auto; } }
@media (max-width:900px) { body.layout-card:has(.auth-page) .account-shell.account-modern { grid-template-columns:1fr; padding:0; } body.layout-card .account-modern .account-visual { display:none; } body.layout-card .account-modern .account-panel { padding:16px 24px 24px; } body.layout-card .account-modern .account-bar { padding-bottom:32px; width:100%; max-width:650px; margin:0 auto; } body.layout-card .account-modern main:has(.auth-page) { padding-top:24px; margin:0 auto auto; } }
@media (max-width:380px) { body.layout-card .account-modern .account-panel { padding-inline:18px; } .account-modern .auth-mode-register .auth-main-form { grid-template-columns:1fr; } .account-modern .account-home { font-size:.72rem; } }
@media (prefers-reduced-motion:reduce) { body.layout-card .account-modern .auth-main-form > .ui-button-primary:hover { transform:none; } }
