/* Customer account, authentication and payment surfaces. Loaded after the local utility stylesheet. */
.customer-auth { display: grid; min-height: 100vh; padding: clamp(16px, 3vw, 36px); align-items: center; align-items: safe center; justify-items: center; background: radial-gradient(circle at 86% 8%, rgba(229,182,76,.19), transparent 26rem), linear-gradient(135deg, #0b1d14, #132b1e) !important; }
.customer-auth__wrap { width: min(100%, 440px); margin: auto; }
.customer-auth__card { width: 100%; padding: clamp(1.55rem, 5vw, 2.5rem) !important; border: 1px solid rgba(255,255,255,.15) !important; border-radius: 16px !important; color: var(--shop-ink) !important; background: #fffdf8 !important; box-shadow: 0 24px 60px rgba(0,0,0,.28); }
.customer-auth__card h1, .customer-auth__card h2 { color: var(--shop-deep) !important; font-family: 'Playfair Display', Georgia, serif; letter-spacing: -.035em; }
.customer-auth__card p, .customer-auth__card .text-gray-400, .customer-auth__card .text-gray-500 { color: var(--shop-muted) !important; }
.customer-auth__card input, .customer-auth__card select { min-height: 48px; border: 1px solid #cbd9cb !important; border-radius: 9px !important; color: var(--shop-ink) !important; background: #fff !important; }
.customer-auth__card input:focus, .customer-auth__card select:focus { outline: 3px solid rgba(229,182,76,.25); border-color: var(--shop-gold) !important; }
.customer-auth__card a:not(.customer-auth__primary) { color: #93640b !important; }
.customer-auth__primary { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 9px !important; color: var(--shop-deep) !important; background: var(--shop-gold) !important; font-weight: 700; text-decoration: none; }
.customer-auth__primary:hover { background: #f0c75f !important; }
.customer-auth__card button { min-height: 48px; border-radius: 9px !important; background: var(--shop-gold) !important; color: var(--shop-deep) !important; font-weight: 700; }
.customer-auth__card .bg-amber-500\/10 { background: #fff5d9 !important; color: #805500 !important; }

.account-page { min-height: 70vh; padding: clamp(2rem, 5vw, 4.5rem) 0; background: var(--shop-cream) !important; color: var(--shop-ink) !important; }
.account-page h1, .account-page h2, .account-page h3 { color: var(--shop-deep) !important; font-family: 'Playfair Display', Georgia, serif; letter-spacing: -.03em; }
.account-page .text-white, .account-page .text-gray-300 { color: var(--shop-ink) !important; }
.account-page .text-gray-400, .account-page .text-gray-500 { color: var(--shop-muted) !important; }
.account-page .bg-\[\#1a1a1a\], .account-page .bg-\[\#1f1f1f\] { background: #fffdf8 !important; }
.account-page .bg-\[\#111\] { background: #f1f5ee !important; }
.account-page .bg-\[\#222\] { background: #edf2ea !important; }
.account-page .border-gray-700, .account-page .border-gray-600 { border-color: var(--shop-line) !important; }
.account-page .rounded-2xl { box-shadow: 0 12px 30px rgba(19,46,31,.07); }
.account-page input, .account-page textarea, .account-page select { min-height: 46px; border-color: #cbd9cb !important; color: var(--shop-ink) !important; background: #fff !important; }
.account-page input:focus, .account-page textarea:focus, .account-page select:focus { outline: 3px solid rgba(229,182,76,.23); border-color: var(--shop-gold) !important; }
.account-page .text-\[\#D4AF37\] { color: #8d610b !important; }
.account-page .bg-\[\#D4AF37\] { background: var(--shop-gold) !important; }
.account-page table { min-width: 650px; }
.account-page .account-status { display: inline-flex; padding: .28rem .6rem; border-radius: 999px; font-size: .75rem; font-weight: 700; }
.account-page .account-status--paid, .account-page .account-status--completed { background: #e2f3e8; color: #08683f; }
.account-page .account-status--pending, .account-page .account-status--processing { background: #fff2cf; color: #805600; }
.account-page .account-status--cancelled { background: #fde6e3; color: #a53027; }

.payment-page { min-height: 70vh; display: grid; place-items: center; padding: 48px 15px; background: var(--shop-cream); }
.payment-card { width: min(100%, 520px); padding: clamp(1.7rem, 5vw, 3rem); border: 1px solid var(--shop-line); border-radius: 18px; text-align: center; color: var(--shop-ink); background: #fffdf8; box-shadow: var(--shop-shadow); }
.payment-card h1 { color: var(--shop-deep); font-family: 'Playfair Display', Georgia, serif; font-size: clamp(2rem, 5vw, 3.1rem); }
.payment-card p { color: var(--shop-muted); }
.payment-actions { display: grid; gap: 10px; margin-top: 25px; }
.payment-actions a { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; border: 1px solid var(--shop-forest); border-radius: 9px; color: var(--shop-forest); font-weight: 700; text-decoration: none; }
.payment-actions a:first-child { border-color: var(--shop-gold); color: var(--shop-deep); background: var(--shop-gold); }
.payment-actions a:hover { transform: translateY(-1px); }
@media (max-width: 650px) { .account-page .max-w-6xl, .account-page .max-w-xl { padding-left: 15px; padding-right: 15px; } .account-page .flex.justify-between.items-center { flex-wrap: wrap; gap: 16px; } }

.social-auth { display: grid; gap: 10px; }
.social-auth__button { position: relative; display: flex; align-items: center; justify-content: center; gap: 11px; width: 100%; min-height: 52px; padding: 0 52px; border: 1px solid #c8d1c8; border-radius: 10px; color: #17261c !important; background: #fff; font-weight: 700; line-height: 1.2; text-decoration: none; transition: border-color .18s, box-shadow .18s, transform .18s, opacity .18s; }
.social-auth__provider-icon { position: absolute; left: 18px; display: grid; width: 21px; min-width: 21px; max-width: 21px; height: 21px; min-height: 21px; max-height: 21px; place-items: center; overflow: hidden; }
.social-auth__provider-icon > svg { display: block !important; width: 21px !important; min-width: 21px !important; max-width: 21px !important; height: 21px !important; min-height: 21px !important; max-height: 21px !important; }
.social-auth__button:hover { border-color: #8c9e8d; box-shadow: 0 7px 16px rgba(19,46,31,.1); transform: translateY(-1px); }
.social-auth__button:focus-visible { outline: 3px solid rgba(229,182,76,.45); outline-offset: 2px; }
.social-auth__button[aria-disabled="true"] { pointer-events: none; opacity: .58; }
.social-auth__spinner { display: none; width: 18px; height: 18px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: social-auth-spin .7s linear infinite; }
.social-auth__button.is-loading .social-auth__spinner { position: absolute; right: 18px; display: block; }
.social-auth__button.is-loading span:not(.social-auth__spinner) { opacity: .7; }
.social-auth__divider { display: flex; align-items: center; gap: 12px; color: #758176; font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; }
.social-auth__divider::before, .social-auth__divider::after { content: ""; flex: 1; height: 1px; background: #dce2da; }
@keyframes social-auth-spin { to { transform: rotate(360deg); } }

/* Dedicated customer sign-in and registration layouts. These rules keep provider icons
   constrained even if a utility stylesheet changes the global SVG defaults. */
.customer-auth__wrap--wide { width: min(100%, 520px); }
.auth-page { width: 100%; }
.auth-shell { display: grid; grid-template-columns: minmax(300px, .82fr) minmax(440px, 1.18fr); width: min(100%, 1050px); min-height: min(760px, calc(100vh - 72px)); margin: auto; overflow: hidden; border: 1px solid rgba(255,255,255,.12); border-radius: 24px; background: #fffdf8; box-shadow: 0 30px 90px rgba(0,0,0,.38); }
.auth-shell--register { grid-template-columns: minmax(300px, .76fr) minmax(500px, 1.24fr); width: min(100%, 1110px); }
.auth-story { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 100%; padding: clamp(2.2rem, 5vw, 4.5rem); overflow: hidden; color: #fff; background: linear-gradient(160deg, rgba(7,28,17,.75), rgba(7,28,17,.97)), url('/images/Sihini-Hero.png') center/cover; isolation: isolate; }
.auth-story::before, .auth-story::after { position: absolute; z-index: -1; content: ""; border: 1px solid rgba(229,182,76,.22); border-radius: 50%; }
.auth-story::before { width: 290px; height: 290px; right: -130px; top: -95px; }
.auth-story::after { width: 190px; height: 190px; left: -100px; bottom: 35px; }
.auth-story__content { margin: auto 0; }
.auth-story__eyebrow { margin: 0 0 18px; color: #e5b64c; font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.auth-story h2 { max-width: 460px; margin: 0; color: #fff; font-family: 'Playfair Display', Georgia, serif; font-size: clamp(2.25rem, 4vw, 3.7rem); font-weight: 500; line-height: 1.04; letter-spacing: -.045em; }
.auth-story__content > p:not(.auth-story__eyebrow) { max-width: 400px; margin: 22px 0 0; color: rgba(255,255,255,.73); font-size: .96rem; line-height: 1.7; }
.auth-story__list { display: grid; gap: 12px; margin: 30px 0 0; padding: 0; color: rgba(255,255,255,.9); font-size: .86rem; list-style: none; }
.auth-story__list li { display: flex; align-items: center; gap: 10px; }
.auth-story__list span { display: grid; width: 23px; height: 23px; place-items: center; border: 1px solid rgba(229,182,76,.45); border-radius: 50%; color: #e5b64c; font-size: .7rem; }
.auth-story__note { margin: 38px 0 0; color: rgba(255,255,255,.55); font-size: .68rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.auth-card { display: grid; gap: 24px; }
.auth-card--wide { gap: 22px; }
.auth-shell > .customer-auth__card { align-content: center; padding: clamp(2rem, 5vw, 4rem) !important; border: 0 !important; border-radius: 0 !important; box-shadow: none; }
.customer-auth__card a.social-auth__button { color: #17261c !important; }
.customer-auth__card .social-auth__provider-icon > svg.social-auth__icon { display: block !important; width: 21px !important; min-width: 21px !important; max-width: 21px !important; height: 21px !important; min-height: 21px !important; max-height: 21px !important; }
.customer-auth__card a.auth-brand { display: inline-flex; align-items: center; justify-self: center; gap: 10px; color: var(--shop-deep) !important; text-decoration: none; }
.auth-brand img { width: 44px !important; min-width: 44px; max-width: 44px; height: 44px !important; min-height: 44px; max-height: 44px; object-fit: contain; }
.auth-brand span { display: grid; line-height: 1.05; }
.auth-brand strong { font-family: 'Playfair Display', Georgia, serif; font-size: 1.22rem; }
.auth-brand small { margin-top: 4px; color: #99721d; font-size: .62rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.auth-card__heading { text-align: center; }
.auth-kicker { margin: 0 0 7px !important; color: #96701d !important; font-size: .72rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.auth-card__heading h1 { margin: 0; color: var(--shop-deep) !important; font-family: 'Playfair Display', Georgia, serif; font-size: clamp(2rem, 7vw, 2.65rem) !important; font-weight: 600; line-height: 1.05; letter-spacing: -.045em; }
.auth-card__heading p:not(.auth-kicker) { max-width: 390px; margin: 12px auto 0 !important; color: var(--shop-muted) !important; font-size: .92rem; line-height: 1.55; }
.auth-alert { display: flex; align-items: flex-start; justify-content: space-between; gap: 13px; padding: 13px 15px; border: 1px solid; border-radius: 10px; font-size: .87rem; line-height: 1.45; }
.auth-alert a { flex: 0 0 auto; color: inherit !important; font-weight: 800; text-decoration: underline; }
.auth-alert--warning { border-color: #ead49c; color: #765400; background: #fff8df; }
.auth-alert--error { border-color: #efb5af; color: #8f2e27; background: #fff0ee; }
.auth-form { display: grid; gap: 23px; }
.auth-form-fields { display: grid; gap: 16px; }
.auth-form-fields--register { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.auth-form-fields--register .auth-field--full { grid-column: 1 / -1; }
.auth-field { display: grid; gap: 7px; }
.auth-field label, .auth-field__label-row { color: #314336; font-size: .82rem; font-weight: 800; }
.auth-field label span, .auth-field__label-row > span { color: #78847a; font-size: .75rem; font-weight: 500; }
.auth-field__label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.customer-auth__card .auth-field__label-row a { color: #8d610b !important; font-size: .76rem; font-weight: 700; text-decoration: none; }
.customer-auth__card .auth-field__label-row a:hover { text-decoration: underline; }
.auth-card .auth-field input, .auth-card .auth-field select { width: 100%; min-height: 52px; padding: 0 15px; border: 1px solid #c7d2c7 !important; border-radius: 10px !important; color: var(--shop-ink) !important; background: #fff !important; box-shadow: 0 1px 2px rgba(19,46,31,.03); transition: border-color .18s, box-shadow .18s, background .18s; }
.auth-card .auth-field input::placeholder { color: #98a199; }
.auth-card .auth-field input:hover, .auth-card .auth-field select:hover { border-color: #93a593 !important; }
.auth-card .auth-field input:focus, .auth-card .auth-field select:focus { outline: 3px solid rgba(229,182,76,.2); border-color: #b98416 !important; box-shadow: 0 0 0 1px #b98416; }
.auth-card .auth-field input:user-invalid { border-color: #c9574e !important; background: #fffafa !important; }
.auth-password { position: relative; }
.auth-card .auth-password input { padding-right: 52px; }
.customer-auth__card .auth-password__toggle { position: absolute; right: 5px; top: 50%; display: grid; width: 42px; min-height: 42px; padding: 0; place-items: center; border: 0; color: #647267 !important; background: transparent !important; box-shadow: none; transform: translateY(-50%); cursor: pointer; }
.customer-auth__card .auth-password__toggle:hover { color: #8d610b !important; }
.customer-auth__card .auth-password__toggle:focus-visible { outline: 2px solid #b98416; outline-offset: -2px; }
.auth-password__eye { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.auth-password__toggle[aria-pressed="true"] .auth-password__eye { opacity: .62; }
.auth-field__feedback { min-height: 1em; color: #a53b34; font-size: .72rem; }
.auth-field__feedback.is-valid { color: #14724a; }
.auth-strength { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.auth-strength > span { height: 3px; border-radius: 99px; background: #e1e6df; transition: background .2s; }
.auth-strength small { grid-column: 1 / -1; color: #78847a; font-size: .7rem; }
.auth-strength[data-score="1"] span:first-child { background: #c9574e; }
.auth-strength[data-score="2"] span:nth-child(-n+2) { background: #c78a1c; }
.auth-strength[data-score="3"] span { background: #238158; }
.auth-phone-row { display: grid; grid-template-columns: minmax(126px, .78fr) minmax(0, 1.22fr); gap: 9px; }
.auth-card .auth-phone-row select { padding-right: 28px; }
.auth-submit { display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 51px !important; padding: 0 18px; border: 0; border-radius: 9px !important; color: var(--shop-deep) !important; background: var(--shop-gold) !important; box-shadow: 0 9px 17px rgba(136,95,10,.16); font-size: .93rem; font-weight: 800 !important; transition: transform .18s ease, background .18s ease, box-shadow .18s ease; }
.auth-submit:hover { background: #f0c75f !important; box-shadow: 0 12px 21px rgba(136,95,10,.2); transform: translateY(-1px); }
.auth-submit:disabled { cursor: wait; opacity: .7; transform: none; }
.auth-submit:focus-visible, .auth-switch a:focus-visible, .auth-brand:focus-visible { outline: 3px solid rgba(185,132,22,.4); outline-offset: 3px; }
.auth-switch, .auth-legal { margin: 0 !important; text-align: center; }
.auth-switch { color: var(--shop-muted) !important; font-size: .88rem; }
.customer-auth__card .auth-switch a, .customer-auth__card .auth-legal a { color: #8d610b !important; font-weight: 800; text-decoration: none; }
.customer-auth__card .auth-switch a:hover, .customer-auth__card .auth-legal a:hover { text-decoration: underline; }
.auth-legal { color: #7a847c !important; font-size: .75rem; line-height: 1.55; }
@media (max-width: 860px) {
  .auth-shell, .auth-shell--register { display: block; width: min(100%, 560px); min-height: 0; border-radius: 18px; }
  .auth-story { display: none; }
  .auth-shell > .customer-auth__card { border-radius: 18px !important; }
  .auth-form-fields--register { grid-template-columns: 1fr; }
  .auth-form-fields--register .auth-field--full { grid-column: auto; }
}
@media (max-width: 480px) {
  .customer-auth { padding: 16px 12px; }
  .customer-auth__card, .auth-shell > .customer-auth__card { padding: 26px 20px !important; border-radius: 14px !important; }
  .auth-shell { border-radius: 14px; }
  .auth-card { gap: 20px; }
  .auth-phone-row { grid-template-columns: 1fr; }
  .social-auth__button { padding-right: 42px; padding-left: 42px; font-size: .9rem; }
  .auth-card__heading h1 { font-size: 2rem !important; }
}

.connected-accounts { padding: clamp(1.3rem, 4vw, 2rem); border: 1px solid var(--shop-line); border-radius: 18px; background: #fffdf8; box-shadow: 0 12px 30px rgba(19,46,31,.07); scroll-margin-top: 100px; }
.connected-accounts__heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.connected-accounts__password, .connected-account__connect, .connected-account__disconnect { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 16px; border: 1px solid #1d5639; border-radius: 999px; color: #1d5639 !important; background: transparent !important; font-size: .86rem; font-weight: 700; text-decoration: none; }
.connected-accounts__list { display: grid; gap: 10px; }
.connected-account { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px; border: 1px solid #dde4da; border-radius: 12px; background: #fff; }
.connected-account__identity { display: flex; align-items: center; gap: 13px; }
.connected-account__identity strong, .connected-account__identity span { display: block; }
.connected-account__identity .is-connected { color: #087146; font-size: .8rem; font-weight: 700; }
.connected-account__identity .is-disconnected { color: #788179; font-size: .8rem; }
.connected-account__icon { display: grid !important; place-items: center; width: 39px; height: 39px; border: 1px solid #d7ded5; border-radius: 50%; font-weight: 800; background: #fff; }
.connected-account__icon--google { color: #4285f4; }
.connected-account__disconnect { border-color: #c34c42 !important; color: #a9352d !important; }
.connected-account__connect:hover, .connected-accounts__password:hover { color: #fff !important; background: #1d5639 !important; }
.connected-account__disconnect:hover { color: #fff !important; background: #a9352d !important; }
.connected-account button:disabled { opacity: .55; cursor: wait; }
.connected-accounts__note { margin-top: 14px; color: #68736a; font-size: .78rem; }
.account-alert { padding: 13px 16px; border: 1px solid; border-radius: 10px; font-size: .9rem; }
.account-alert--error { border-color: #efb5af; color: #8f2e27; background: #fff0ee; }
.account-alert--success { border-color: #9bcdb1; color: #08683f; background: #eaf7ef; }
@media (max-width: 550px) {
  .connected-accounts__heading, .connected-account { align-items: flex-start; flex-direction: column; }
  .connected-account form, .connected-account__connect, .connected-account__disconnect { width: 100%; }
}
