﻿/* Customer accounts use the same charcoal and orange palette as company pages. */
.customer-auth-page { min-height:100vh; color-scheme:dark; background:radial-gradient(ellipse at 0 10%,#49351b55,transparent 48%),#10110f; color:#f2eee7; }
.customer-auth-page .shop-header-actions .account-link { display:none; }
.auth-shell { width:var(--shell); min-height:100svh; margin:auto; padding:150px 0 85px; display:grid; grid-template-columns:minmax(0,1fr) minmax(0,470px); align-items:center; gap:clamp(35px,7vw,100px); }
.auth-intro,.customer-auth-card { min-width:0; }
.auth-intro h1 { margin:0; font-size:clamp(2.7rem,4.5vw,4.8rem); letter-spacing:-.06em; line-height:1.06; }
.auth-intro h1 em { color:#f89a46; font-family:Georgia,"Times New Roman",serif; font-weight:400; }
.auth-intro > p:not(.eyebrow) { max-width:440px; margin:28px 0; color:#bdb8ad; line-height:1.75; }
.auth-shop-cta { width:auto; min-width:190px; margin-top:2px; }
.auth-shop-cta span { font-size:1.05rem; transition:transform .2s ease; }
.auth-shop-cta:hover span { transform:translate(2px,-2px); }
.auth-back-link { display:inline-flex; align-items:center; min-height:44px; margin-top:8px; color:#ffac62; font-size:.9rem; font-weight:750; }
.auth-back-link:hover { text-decoration:underline; }
.customer-auth-card { min-height:390px; padding:clamp(24px,4vw,40px); border:1px solid #ffffff20; border-radius:20px; background:#1d2019; box-shadow:0 25px 60px #00000026; }
.customer-auth-card h2 { margin:0; font-size:clamp(1.5rem,3vw,2rem); letter-spacing:-.035em; }
.customer-auth-card form > p,[data-auth-loading] > p,[data-auth-unavailable] > p,[data-auth-account] > p:not(.eyebrow) { margin:12px 0 24px; color:#bdb8ad; line-height:1.6; overflow-wrap:anywhere; }
.customer-auth-card label { display:grid; gap:10px; margin:18px 0; color:#ddd9ce; font-size:.82rem; font-weight:650; }
.customer-auth-card input,.customer-auth-card select,.customer-auth-card textarea { min-width:0; width:100%; padding:13px 14px; border:1px solid #ffffff26; border-radius:8px; background:#11150f; color:#f3eee4; font:inherit; font-size:16px; }
.customer-auth-card input:focus,.customer-auth-card select:focus,.customer-auth-card textarea:focus { outline:2px solid var(--orange); outline-offset:2px; border-color:var(--orange); }
.customer-auth-card textarea { resize:vertical; }
.customer-auth-card .auth-consent { display:flex; align-items:flex-start; gap:12px; font-size:.77rem; font-weight:400; line-height:1.6; }
.customer-auth-card .auth-consent input { flex:0 0 18px; width:18px; height:18px; margin:3px 0 0; padding:0; accent-color:var(--orange); }
.auth-consent a { color:#ffac62; text-decoration:underline; }
.auth-name-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.auth-name-fields label { margin:0; }
.auth-password-strength { --strength-color:#777c70; display:grid; gap:7px; margin-top:12px; }
.auth-password-strength[data-level="1"] { --strength-color:#ff9a89; }
.auth-password-strength[data-level="2"] { --strength-color:#ffa34d; }
.auth-password-strength[data-level="3"] { --strength-color:#d4d978; }
.auth-password-strength[data-level="4"] { --strength-color:#a8d6a1; }
.auth-password-strength progress { display:block; appearance:none; width:100%; height:7px; overflow:hidden; border:0; border-radius:8px; background:#ffffff18; color:var(--strength-color); accent-color:var(--strength-color); }
.auth-password-strength progress::-webkit-progress-bar { border-radius:8px; background:#ffffff18; }
.auth-password-strength progress::-webkit-progress-value { border-radius:8px; background:var(--strength-color); }
.auth-password-strength progress::-moz-progress-bar { border-radius:8px; background:var(--strength-color); }
.auth-password-strength small { color:var(--strength-color); }
.customer-auth-card [data-password-match].is-error { color:#ffb0a2; }
.customer-auth-card small { color:#aaa89d; font-size:.74rem; font-weight:500; }
.customer-auth-card .button { width:100%; margin-top:10px; cursor:pointer; }
.customer-auth-card .button:disabled { opacity:.65; cursor:wait; }
.auth-password-group { margin:18px 0; }
.customer-auth-card .auth-password-group label { margin:0 0 10px; }
.auth-password-field { position:relative; }
.customer-auth-card .auth-password-field input { padding-right:58px; }
.auth-password-toggle { position:absolute; top:50%; right:3px; display:grid; place-items:center; width:44px; height:44px; transform:translateY(-50%); border:0; border-radius:6px; background:transparent; color:#bdb8ad; cursor:pointer; }
.auth-password-toggle:hover { background:#ffffff0e; color:#ffac62; }
.auth-password-toggle svg { width:20px; height:20px; }
.auth-password-toggle [hidden] { display:none; }
.auth-password-group > small { display:block; margin-top:7px; }
.auth-switch { display:grid; grid-template-columns:1fr 1fr; gap:4px; margin-bottom:28px; padding:4px; border:1px solid #ffffff14; border-radius:10px; background:#11150f; }
.auth-switch button { min-height:44px; padding:10px; border:0; border-radius:7px; background:transparent; color:#bdb8ad; cursor:pointer; font-size:.82rem; font-weight:750; }
.auth-switch button:hover { color:#f2eee7; }
.auth-switch button[aria-selected="true"] { background:#f5822018; color:#ffac62; box-shadow:inset 0 -2px var(--orange); }
.auth-text-button { display:block; min-height:44px; margin:14px auto 0; padding:8px; border:0; background:transparent; color:#ffac62; cursor:pointer; font-size:.83rem; text-decoration:underline; }
.auth-message { min-height:1.4em; margin:18px 0 0; color:#bdb8ad; line-height:1.5; overflow-wrap:anywhere; }
.auth-message.is-error,.auth-message.is-success { padding:12px 14px; border:1px solid; border-radius:8px; }
.auth-message.is-error { color:#ffb0a2; border-color:#ffb0a240; background:#ffb0a20a; }
.auth-message.is-success { color:#a8d6a1; border-color:#a8d6a140; background:#a8d6a10a; }
.auth-profile-details { margin:24px 0; }
.auth-profile-details > div { display:grid; grid-template-columns:90px minmax(0,1fr); gap:16px; padding:13px 0; border-bottom:1px solid #ffffff14; }
.auth-profile-details dt { color:#aaa89d; font-size:.76rem; line-height:1.6; }
.auth-profile-details dd { min-width:0; margin:0; color:#f2eee7; font-size:.86rem; line-height:1.6; white-space:pre-line; overflow-wrap:anywhere; }
.auth-account-actions { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:22px; padding-top:18px; border-top:1px solid #ffffff14; }
.auth-account-action { display:inline-flex; align-items:center; justify-content:center; gap:9px; min-height:44px; padding:9px 13px; border:1px solid #ffffff26; border-radius:9px; color:#d6d2c8; background:#ffffff08; font:inherit; font-size:.78rem; font-weight:750; cursor:pointer; transition:border-color .2s,background .2s,color .2s,transform .2s; }
.auth-account-action svg { flex:0 0 auto; width:17px; height:17px; }
.auth-account-action:hover,.auth-account-action:focus-visible { border-color:#f5822080; color:#ffac62; background:#f5822010; outline:none; transform:translateY(-1px); }
.auth-account-signout { color:#b7b4ac; background:transparent; }
.auth-account-signout:hover,.auth-account-signout:focus-visible { border-color:#df887580; color:#efaa9b; background:#b64c3510; }
.auth-danger-zone { display:flex; align-items:center; justify-content:space-between; gap:18px; margin-top:24px; padding:18px; border:1px solid #d96a5945; border-radius:12px; background:#a43a2810; }
.auth-danger-zone h3 { margin:0; color:#f1c4bc; font-size:.9rem; }
.auth-danger-zone p { margin:5px 0 0; color:#aaa39d; font-size:.74rem; line-height:1.5; }
.auth-danger-zone button,.auth-delete-submit { flex:0 0 auto; min-height:42px; padding:9px 14px; border:1px solid #df806f80; border-radius:8px; color:#ffb7aa; background:#9f372640; font:inherit; font-size:.76rem; font-weight:800; cursor:pointer; }
.auth-danger-zone button:hover,.auth-danger-zone button:focus-visible,.auth-delete-submit:hover,.auth-delete-submit:focus-visible { border-color:#f19a89; color:#fff; background:#a84432; outline:none; }
.auth-delete-dialog { box-sizing:border-box; width:min(560px,calc(100% - 24px)); max-height:90dvh; overflow:auto; padding:28px; border:1px solid #ffffff2b; border-radius:18px; color:#f2eee7; background:#1b1d18; box-shadow:0 28px 100px #0009; }
.auth-delete-dialog::backdrop { background:#050805d9; backdrop-filter:blur(7px); }
.auth-delete-close { float:right; margin-left:14px; cursor:pointer; }
.auth-delete-dialog .eyebrow { margin:2px 0 8px; color:#ef9d8d; }
.auth-delete-dialog h2 { margin:0 0 18px; font-size:1.65rem; }
.auth-delete-warning { padding:16px; border:1px solid #d96a5945; border-radius:10px; background:#a43a2814; }
.auth-delete-warning strong { color:#ffb7aa; }
.auth-delete-warning p { margin:8px 0 0; color:#c8c0b8; font-size:.82rem; line-height:1.6; }
.auth-delete-dialog label { display:grid; gap:9px; margin:20px 0 0; color:#ddd9ce; font-size:.82rem; font-weight:650; }
.auth-delete-dialog input { box-sizing:border-box; width:100%; min-height:46px; padding:12px 14px; border:1px solid #ffffff30; border-radius:8px; color:#fff; background:#11150f; font:inherit; font-size:16px; text-transform:uppercase; }
.auth-delete-dialog input:focus { border-color:#e17d6a; outline:2px solid #e17d6a; outline-offset:2px; }
.auth-delete-status { min-height:1.3em; margin:12px 0 0; color:#ffb0a2; font-size:.8rem; line-height:1.5; }
.auth-delete-actions { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:12px; margin-top:18px; }
.auth-delete-actions .auth-profile-cancel { min-width:130px; }
.auth-delete-submit:disabled { opacity:.55; cursor:wait; }
.auth-profile-form { display:grid; gap:22px; }
.auth-profile-form[hidden] { display:none; }
.auth-profile-form > h2,.auth-profile-form > p { margin:0; }
.auth-profile-form > p:not(.eyebrow) { color:#bdb8ad; line-height:1.6; }
.auth-profile-form .auth-grid-name { grid-template-columns:minmax(0,.75fr) minmax(0,1fr) minmax(0,1fr); }
.auth-profile-actions { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:12px; align-items:center; }
.auth-profile-actions .button { margin:0; }
.auth-profile-cancel { min-height:44px; padding:10px 16px; border:1px solid #ffffff30; border-radius:8px; color:#ddd9ce; background:transparent; font:inherit; font-size:.84rem; font-weight:700; cursor:pointer; }
.auth-profile-cancel:hover,.auth-profile-cancel:focus-visible { border-color:#ffac62; color:#ffac62; outline:none; }
.auth-points { margin:24px 0 14px; padding:20px; border:1px solid #f5822038; border-radius:14px; background:#f582200a; }
.auth-points h3 { margin:0; font-size:1rem; }
.auth-points-balance { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:14px 0; }
.auth-points-balance strong { color:#ffac62; font-size:2.4rem; line-height:1; }
.auth-points-balance > span { padding:6px 10px; border-radius:99px; color:#ffac62; background:#f5822015; font-size:.72rem; font-weight:700; }
.auth-points p { margin:0; color:#bdb8ad; font-size:.8rem; line-height:1.6; }
.auth-order-history { margin:18px 0 6px; padding:20px; border:1px solid #ffffff18; border-radius:14px; background:#11150f75; }
.auth-order-history > header { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; }
.auth-order-history h3 { margin:0; font-size:1rem; }
.auth-order-history > header p { margin:5px 0 0; color:#aaa89d; font-size:.82rem; line-height:1.5; }
.auth-order-history > header button { flex:0 0 auto; min-height:40px; padding:8px 11px; border:1px solid #ffffff26; border-radius:8px; color:#d8d3c9; background:transparent; font:inherit; font-size:.8rem; font-weight:750; cursor:pointer; }
.auth-order-history > header button:hover,.auth-order-history > header button:focus-visible { border-color:#f5822080; color:#ffac62; outline:none; }
.auth-orders-status { margin:14px 0 0; color:#aaa89d; font-size:.82rem; }
.auth-orders-list { display:grid; gap:12px; max-height:480px; overflow:auto; margin-top:12px; padding-right:3px; scrollbar-width:thin; scrollbar-color:#f5822055 transparent; }
.auth-order-card { padding:15px; border:1px solid #ffffff16; border-radius:11px; background:#1d2019; }
.auth-order-card > header { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.auth-order-card > header small { display:block; color:#aaa89d; font-size:.76rem; }
.auth-order-card h4 { margin:4px 0 0; color:#f2eee7; font-size:.88rem; overflow-wrap:anywhere; }
.auth-order-badge { flex:0 0 auto; padding:5px 8px; border-radius:99px; color:#ffd09f; background:#f5822019; font-size:.72rem; font-weight:800; white-space:nowrap; }
.auth-order-badge.is-completed { color:#b9e1b2; background:#4c914124; }
.auth-order-badge.is-cancelled { color:#efb0a5; background:#a4423228; }
.auth-order-badge.is-processing,.auth-order-badge.is-ready { color:#b9d9ed; background:#4280a02b; }
.auth-order-card ul { display:grid; gap:8px; margin:14px 0; padding:13px 0; border-block:1px solid #ffffff10; list-style:none; }
.auth-order-card li { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; color:#d5d0c6; font-size:.8rem; line-height:1.45; }
.auth-order-card li span { min-width:0; overflow-wrap:anywhere; }
.auth-order-card li b { color:#ffac62; }
.auth-order-card li em { color:#d8b483; font-size:.72rem; font-style:normal; }
.auth-order-card li strong { flex:0 0 auto; color:#f2eee7; font-size:.78rem; }
.auth-order-card footer { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.auth-order-card footer p { margin:0; color:#aaa89d; font-size:.76rem; }
.auth-order-card footer > strong { color:#ffac62; font-size:.9rem; }
.auth-orders-empty { padding:20px 8px 8px; color:#aaa89d; text-align:center; }
.auth-orders-empty p { margin:0 0 10px; font-size:.84rem; line-height:1.55; }
.auth-orders-empty a { color:#ffac62; font-size:.84rem; font-weight:750; text-decoration:underline; }
.auth-account-heading { display:flex; align-items:center; justify-content:space-between; gap:20px; }
.auth-account-heading .eyebrow { margin:0 0 5px; }
.auth-account-heading h2 { margin:0; }
.auth-account-heading > a { flex:0 0 auto; min-height:42px; display:inline-flex; align-items:center; padding:9px 14px; border:1px solid #f582205c; border-radius:9px; color:#ffac62; font-size:.82rem; font-weight:750; text-decoration:none; }
.auth-account-heading > a:hover,.auth-account-heading > a:focus-visible { color:#17120b; background:#f58220; outline:none; }
.auth-account-nav { display:flex; gap:4px; margin:22px 0 24px; padding:4px; border:1px solid #ffffff14; border-radius:11px; background:#11150f; }
.auth-account-nav button { flex:1; min-height:42px; padding:9px 14px; border:0; border-radius:8px; color:#aaa89d; background:transparent; font:inherit; font-size:.84rem; font-weight:800; cursor:pointer; }
.auth-account-nav button:hover { color:#f2eee7; }
.auth-account-nav button[aria-selected="true"] { color:#ffac62; background:#f5822018; box-shadow:inset 0 -2px #f58220; }
.auth-account-nav button:focus-visible { outline:2px solid #f58220; outline-offset:2px; }
.auth-account-panel[hidden] { display:none; }
.auth-panel-heading,.auth-settings-block { display:flex; align-items:center; justify-content:space-between; gap:18px; }
.auth-panel-heading h3,.auth-settings-block h3 { margin:0; font-size:1rem; }
.auth-panel-heading p,.auth-settings-block p { margin:5px 0 0; color:#aaa89d; font-size:.82rem; line-height:1.5; }
.auth-panel-heading .auth-account-action,.auth-settings-block .auth-account-action { flex:0 0 auto; }
.auth-profile-layout { margin-top:8px; }
.auth-account-panel.auth-order-history { margin:0; padding:0; border:0; background:transparent; }
.auth-account-panel .auth-orders-list { max-height:440px; }
.auth-settings-block { padding:18px; border:1px solid #ffffff16; border-radius:12px; background:#ffffff04; }
.auth-account-panel .auth-danger-zone { margin-top:16px; }
@media(max-width:850px) {
  .auth-shell { grid-template-columns:1fr; min-height:0; padding-top:125px; gap:35px; }
  .auth-intro { text-align:center; }
  .auth-intro .eyebrow { justify-content:center; }
  .auth-intro > p:not(.eyebrow) { margin-inline:auto; }
  .auth-shop-cta { margin-inline:auto; }
  .customer-auth-card { width:100%; max-width:520px; min-height:0; justify-self:center; }
}
@media(max-width:500px) {
  .auth-shell { width:calc(100% - 32px); padding-bottom:40px; }
  .customer-auth-card { padding:22px; }
  .auth-profile-form .auth-grid,.auth-profile-form .auth-grid-name,.auth-profile-actions { grid-template-columns:1fr; }
  .auth-danger-zone { align-items:stretch; flex-direction:column; }
  .auth-account-heading { align-items:flex-start; flex-direction:column; }
  .auth-account-heading > a { width:100%; box-sizing:border-box; justify-content:center; }
  .auth-account-nav { overflow-x:auto; }
  .auth-account-nav button { min-width:94px; }
  .auth-panel-heading,.auth-settings-block { align-items:stretch; flex-direction:column; }
  .auth-panel-heading .auth-account-action,.auth-settings-block .auth-account-action { width:100%; }
  .auth-order-history { padding:16px; }
  .auth-order-history > header { align-items:stretch; flex-direction:column; }
  .auth-order-history > header button { width:100%; }
  .auth-order-card > header { align-items:flex-start; flex-direction:column; }
  .auth-delete-actions { grid-template-columns:1fr; }
  .auth-delete-actions .auth-profile-cancel { width:100%; }
}
@media(max-width:380px) {
  .auth-name-fields { grid-template-columns:1fr; gap:18px; }
}

/* Create-account form: sectioned, two-column, wider card. */
.customer-auth-card { container-type:inline-size; }
.auth-shell:has([data-auth-form="signup"]:not([hidden])) { grid-template-columns:minmax(0,330px) minmax(0,780px); justify-content:center; align-items:start; }
.auth-shell:has([data-auth-form="signup"]:not([hidden])) .auth-intro { position:sticky; top:130px; }
.auth-shell:has([data-auth-form="signup"]:not([hidden])) .auth-intro h1 { font-size:clamp(2.2rem,3.6vw,3.6rem); }
.auth-signup { display:grid; gap:26px; }
.auth-signup > h2 { margin:0; }
.auth-signup > p { margin:-14px 0 0 !important; }
.customer-auth-card .auth-section { display:grid; gap:18px; min-width:0; margin:0; padding:22px; border:1px solid #ffffff14; border-radius:14px; background:#ffffff05; }
.customer-auth-card .auth-section legend { display:flex; align-items:center; gap:10px; float:left; width:100%; padding:0; margin:0 0 18px; color:#f2eee7; font-size:.95rem; font-weight:800; letter-spacing:-.01em; }
.customer-auth-card .auth-section legend + * { clear:both; }
.customer-auth-card .auth-section legend span { display:grid; place-items:center; flex:0 0 26px; width:26px; height:26px; border-radius:50%; background:#f5822020; color:#ffac62; font-size:.76rem; }
.auth-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px 16px; }
.auth-grid-name { grid-template-columns:minmax(0,.8fr) minmax(0,1fr) minmax(0,1fr); }
.auth-grid > label, .auth-grid > .auth-password-group { margin:0; min-width:0; }
.auth-grid > .wide, .auth-grid > small { grid-column:1 / -1; }
.auth-grid > small { margin-top:-6px; line-height:1.55; }
.customer-auth-card .auth-grid .auth-password-group label { margin:0 0 10px; }
.auth-phone-field { display:grid; grid-template-columns:minmax(82px,.42fr) minmax(0,1fr); }
.customer-auth-card .auth-phone-field select { border-radius:8px 0 0 8px; border-right:1px solid #ffffff3d; background-color:#ffffff0f; font-weight:700; cursor:pointer; }
.customer-auth-card .auth-phone-field input { border-radius:0 8px 8px 0; border-left:0; }
.customer-auth-card .auth-optional { font-weight:400; opacity:.65; font-size:.85em; }
.auth-consents { display:grid; gap:4px; }
.auth-consents .auth-consent { margin:8px 0; }
@container (max-width:600px) {
  .auth-grid, .auth-grid-name { grid-template-columns:1fr; }
  .customer-auth-card .auth-section { padding:18px; }
}
@container (max-width:440px) {
  .auth-account-heading,.auth-panel-heading,.auth-settings-block { align-items:stretch; flex-direction:column; }
  .auth-account-heading > a,.auth-panel-heading .auth-account-action,.auth-settings-block .auth-account-action { width:100%; box-sizing:border-box; justify-content:center; }
}
@media(max-width:1000px) {
  .auth-shell:has([data-auth-form="signup"]:not([hidden])) { grid-template-columns:1fr; }
  .auth-shell:has([data-auth-form="signup"]:not([hidden])) .auth-intro { position:static; }
  .auth-shell:has([data-auth-form="signup"]:not([hidden])) .customer-auth-card { max-width:780px; }
}

/* Sign-up: card fits the screen; only the form scrolls, tabs stay put. */
@media(min-width:851px) {
  .customer-auth-card:has(.auth-signup:not([hidden])) { display:flex; flex-direction:column; height:calc(100svh - 190px); min-height:420px; overflow:hidden; }
  .customer-auth-card:has(.auth-signup:not([hidden])) [data-auth-guest] { display:flex; flex-direction:column; min-height:0; flex:1; }
  .customer-auth-card:has(.auth-signup:not([hidden])) .auth-switch { flex:0 0 auto; }
  .customer-auth-card:has(.auth-signup:not([hidden])) .auth-signup { flex:1; min-height:0; overflow-y:auto; overscroll-behavior:contain; padding-right:12px; margin-right:-12px; scrollbar-width:thin; scrollbar-color:#f5822070 transparent; }
  .customer-auth-card:has(.auth-signup:not([hidden])) .auth-message { flex:0 0 auto; }
}
.auth-signup[hidden] { display:none; }
.customer-auth-card .button:disabled { opacity:.45; filter:grayscale(1); cursor:not-allowed; box-shadow:none; transform:none; }
