/* Scope every existing-element rule to /login; ordinary account/CRM pages retain their styles. */
.auth-brand{display:none}
html[data-auth-screen]{color-scheme:dark;background:#0b0c0d}
html[data-auth-screen] body{--bg:#0b0c0d;--card:#18191b;--text:#f1f0eb;--muted:#a3a4a5;--line:#36383a;--accent:#d6bf8e;margin:0;min-height:100svh;display:flex;flex-direction:column;background:#0b0c0d;color:var(--text);isolation:isolate;overflow-x:clip}
html[data-auth-screen] body::before,html[data-auth-screen] body::after{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none}
html[data-auth-screen] body::before{background:url('/public/auth-workshop-background-full.webp') center/cover no-repeat;opacity:.74}
/* Subtle full-screen diffusion: one tenth of the former blur at center, fading to zero at every edge. */
html[data-auth-screen] body::after{-webkit-backdrop-filter:blur(2.6px);backdrop-filter:blur(2.6px);-webkit-mask-image:radial-gradient(ellipse closest-side at center,#000 0%,transparent 100%);mask-image:radial-gradient(ellipse closest-side at center,#000 0%,transparent 100%)}
html[data-auth-screen] header{position:absolute;inset:24px auto auto 32px;border:0;padding:0;z-index:2}
html[data-auth-screen] header>a{display:inline-flex;align-items:center;gap:8px;min-height:44px;color:#b7b8ba;letter-spacing:1.5px;font-size:11px}
html[data-auth-screen] header>a::before{content:"←";font-size:18px;letter-spacing:0}
html[data-auth-screen] header nav,html[data-auth-screen] #gemly-hub-navigation>a{display:none}
html[data-auth-screen] #gemly-hub-navigation{position:absolute;top:24px;right:32px;padding:0;background:transparent;border:0;z-index:2}
html[data-auth-screen] #gemly-hub-navigation .jewelry-region-controls{margin:0;gap:0}
html[data-auth-screen] #gemly-hub-navigation .jewelry-region-controls>:not(:first-child){display:none!important}
html[data-auth-screen] #gemly-hub-navigation .jewelry-region-controls select{font:12px system-ui!important;min-height:44px;background:#141618aa;border-color:#353739;border-radius:8px;padding:8px 12px!important;color:#c4c5c6;max-width:130px!important}
html[data-auth-screen] main{width:min(440px,calc(100% - 40px));max-width:none;margin:auto;padding:96px 0 40px;position:relative}
html[data-auth-screen] .auth-brand{display:flex;align-items:center;justify-content:center;gap:12px;margin:0 auto 24px;color:#d6bf8e;text-decoration:none;font:500 12px/1.4 system-ui;letter-spacing:3px}
html[data-auth-screen] .auth-brand img{width:44px;height:44px;flex:none}
html[data-auth-screen] main>.eyebrow{display:none}
html[data-auth-screen] h1{font:500 clamp(26px,3vw,32px)/1.2 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;letter-spacing:-.035em;text-align:center;margin:0 0 12px;text-wrap:balance;color:#f0f0ee}
html[data-auth-screen] #description{font-size:14px;line-height:1.6;text-align:center;color:var(--muted);margin:0 0 24px}
html[data-auth-screen] #description:empty{display:none}
html[data-auth-screen] #content{margin-top:24px}
html[data-auth-screen] #content form{max-width:none;gap:20px}
html[data-auth-screen] #content label{font-size:13px;color:#b6b7b8;gap:8px}
html[data-auth-screen] #content input{height:50px;border:1px solid #36383a;border-radius:10px;padding:12px 14px;background:linear-gradient(120deg,#242629c9,#1b1d20e0);box-shadow:inset 0 1px 1px #ffffff08;color:#f4f4f0;font-size:16px;transition:border-color .15s}
html[data-auth-screen] #content input:hover{border-color:#54575a}
html[data-auth-screen] :is(input,button,a,select,summary):focus-visible{outline:2px solid #d6bf8e;outline-offset:4px}
html[data-auth-screen] #content button[type=submit]{min-height:50px;background:#d6bf8e;border:1px solid #d6bf8e;border-radius:10px;color:#171713;font-weight:600;font-size:14px;margin-top:4px;box-shadow:0 4px 18px #0003;transition:background .15s}
html[data-auth-screen] #content button[type=submit]:hover{background:#e2cfa7}
html[data-auth-screen] #content button[type=submit]:disabled{opacity:.55;cursor:wait}
html[data-auth-screen] #auth-form>p:has(button:disabled),html[data-auth-screen] #auth-form small,html[data-auth-screen] #auth-form .actions a[href='/login?mode=signup']{display:none}
html[data-auth-screen] #auth-form[data-social-signup] .actions a[href='/login?mode=signup']{display:inline-flex;min-height:44px}
html[data-auth-screen] #auth-form[data-social-only]>label,html[data-auth-screen] #auth-form[data-social-only]>button[type=submit]{display:none}
html[data-auth-screen] #auth-form .actions{margin:0;justify-content:center;gap:12px 24px;font-size:13px}
html[data-auth-screen] #auth-form .actions a{display:inline-flex;align-items:center;min-height:32px;color:#bebfc0;text-underline-offset:4px;text-decoration-color:#686a6b}
html[data-auth-screen] .auth-session{margin-top:-4px;color:#929496;font-size:12px}
html[data-auth-screen] .auth-session summary{cursor:pointer;min-height:28px;display:flex;align-items:center;gap:8px;width:fit-content}
html[data-auth-screen] .auth-session summary::before{content:'+';color:#b2a387;font-size:16px}
html[data-auth-screen] .auth-session[open] summary::before{content:'−'}
html[data-auth-screen] .auth-session label{margin-top:10px}
html[data-auth-screen] #message:empty{display:none}
html[data-auth-screen] #message:not(:empty){font-size:13px;line-height:1.6;color:#efb5a4;padding:12px 14px;border:1px solid #875d504d;background:#261c19b3;border-radius:8px;margin:20px 0}
html[data-auth-screen] footer{text-align:center;color:#727579;font-size:11px;margin:24px 0 0}
html[data-auth-screen] .card{background:#18191be6;border-color:#36383a}
@media(max-width:700px){html[data-auth-screen] header{top:max(12px,env(safe-area-inset-top));left:max(20px,env(safe-area-inset-left))}html[data-auth-screen] #gemly-hub-navigation{top:max(12px,env(safe-area-inset-top));right:max(20px,env(safe-area-inset-right))}html[data-auth-screen] main{padding-top:104px;padding-bottom:max(32px,env(safe-area-inset-bottom));width:calc(100% - 40px);max-width:440px}html[data-auth-screen] body::before{background-position:center;opacity:.62}html[data-auth-screen] .auth-brand{margin-bottom:24px}html[data-auth-screen] #content{margin-top:24px}}
@media(prefers-reduced-motion:reduce){html[data-auth-screen] #content :is(input,button){transition:none}}

html[data-auth-screen] #description[data-brand-only]{display:none}

html[data-auth-screen] .auth-social{display:grid;gap:12px}
html[data-auth-screen] #content .auth-social button{min-height:50px;border-radius:10px;border:1px solid #54575a;background:#242629d9;color:#f4f4f0;font-size:14px;font-weight:500}
html[data-auth-screen] #content .auth-social button:disabled{opacity:.55;cursor:wait}

@font-face{font-family:JewelryGoogleSans;src:url('/public/fonts/google-sans-medium.ttf') format('truetype');font-weight:500;font-style:normal;font-display:swap}
html[data-auth-screen] #content [data-social-provider=google]{display:flex;align-items:center;justify-content:center;gap:10px;padding:12px;background:#131314;border-color:#8e918f;color:#e3e3e3;font-family:JewelryGoogleSans,Arial,sans-serif;font-size:14px;line-height:20px}
html[data-auth-screen] .auth-google-mark{width:20px;height:auto;flex:none;background:#fff;border:2px solid #fff;border-radius:50%;box-sizing:content-box}

.auth-legal{display:none}html[data-auth-screen] .auth-legal{display:flex;justify-content:center;flex-wrap:wrap;gap:4px 20px;margin-top:12px}html[data-auth-screen] .auth-legal a{display:inline-flex;align-items:center;min-height:44px;font-size:12px;line-height:1.5;color:#a9afaa;max-width:100%;overflow-wrap:anywhere}
