/* Sign in / create account (includes/auth-panel.blade.php): the /user/login page and the login modal */
.auth-card {
  --auth-accent: #07a8a9;
  --auth-ink: #1d2340;
  --auth-muted: #6b7191;
  --auth-line: #dcdff0;
  --auth-bg-soft: #f4f6fb;
  --auth-danger: #c62f3e;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  background: #fff;
  color: var(--auth-ink);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(29, 35, 64, .18);
  font-family: inherit;
  text-align: left;
}
[dir="rtl"] .auth-card { text-align: right; }
.auth-card *, .auth-card *::before, .auth-card *::after { box-sizing: border-box; }

/* ---------- left hero ---------- */
.auth-card .auth-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 20px;
  padding: 38px 32px 0;
  color: #fff;
  background:
    radial-gradient(circle at 85% 8%, rgba(255, 255, 255, .16), transparent 42%),
    linear-gradient(160deg, #0f2a4a 0%, #13405f 52%, var(--auth-accent) 130%);
  overflow: hidden;
}
.auth-card .auth-hero-copy h2 { margin: 0 0 10px; font-size: 28px; line-height: 1.2; font-weight: 700; color: #fff; text-transform: none; }
.auth-card .auth-hero-copy p { margin: 0 0 18px; color: rgba(255, 255, 255, .82); font-size: 15px; line-height: 1.5; }
.auth-card .auth-perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.auth-card .auth-perks li { display: flex; align-items: center; gap: 12px; font-size: 14.5px; color: #fff; }
.auth-card .auth-perks i {
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 34px;
  width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .16); font-size: 14px;
}
.auth-card .auth-art { width: 86%; height: auto; margin: auto 0 22px -4px; align-self: flex-start; color: rgba(255, 255, 255, .26); }

/* ---------- right body ---------- */
.auth-card .auth-body { padding: 38px 40px 30px; }
.auth-card .auth-view { display: none; }
.auth-card .auth-view.is-active { display: block; animation: authIn .22s ease-out; }
@keyframes authIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .auth-card .auth-view.is-active { animation: none; } }

.auth-card .auth-title { margin: 0 0 22px; font-size: 28px; line-height: 1.2; font-weight: 700; color: var(--auth-ink); text-transform: none; }
.auth-card .auth-sub { margin: -12px 0 22px; color: var(--auth-muted); font-size: 14.5px; }

.auth-card .auth-field { margin: 0 0 16px; }
/* every field has a placeholder: the label stays for screen readers only */
.auth-card .auth-field > label { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.auth-card input[type="text"], .auth-card input[type="email"], .auth-card input[type="tel"], .auth-card input[type="password"] {
  display: block; width: 100%; height: 52px; margin: 0; padding: 0 16px;
  font-size: 16px; color: var(--auth-ink); background: #fff;
  border: 1.5px solid var(--auth-line); border-radius: 14px; box-shadow: none; outline: 0;
  transition: border-color .15s, box-shadow .15s;
}
.auth-card input::placeholder { color: #8b91ad; font-size: 15px; }
.auth-card input:focus { border-color: var(--auth-accent); box-shadow: 0 0 0 4px rgba(7, 168, 169, .16); }
.auth-card .auth-pw { position: relative; }
.auth-card .auth-pw input { padding-right: 42px; }
[dir="rtl"] .auth-card .auth-pw input { padding-right: 16px; padding-left: 42px; }
.auth-card .auth-eye {
  position: absolute; top: 50%; right: 4px; transform: translateY(-50%);
  width: 34px; height: 34px; border: 0; border-radius: 10px; background: transparent; color: var(--auth-muted); cursor: pointer;
}
[dir="rtl"] .auth-card .auth-eye { right: auto; left: 6px; }
.auth-card .auth-eye:hover, .auth-card .auth-eye:focus-visible { color: var(--auth-ink); background: var(--auth-bg-soft); outline: 0; }

.auth-card .auth-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 2px 0 18px; flex-wrap: wrap; }
.auth-card .auth-check { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 13.5px; color: var(--auth-muted); cursor: pointer; font-weight: 400; }
.auth-card .auth-check input[type="checkbox"] { display: inline-block; flex: 0 0 18px; width: 18px; height: 18px; margin: 0; accent-color: var(--auth-accent); cursor: pointer; }
.auth-card .auth-link, .auth-card .auth-switch a { color: var(--auth-ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.auth-card .auth-link { font-size: 13.5px; }
.auth-card .auth-link:hover, .auth-card .auth-switch a:hover { color: var(--auth-accent); }

.auth-card .auth-btn.submit-btn {
  display: block; width: 100%; height: 54px; margin: 0; padding: 0 20px;
  font-size: 16px; font-weight: 700; letter-spacing: .2px; text-transform: none; color: #fff;
  background: var(--auth-accent); border: 0; border-radius: 999px; cursor: pointer;
  box-shadow: 0 8px 20px rgba(7, 168, 169, .28);
  transition: transform .12s, box-shadow .15s, opacity .15s, filter .15s;
}
.auth-card .auth-btn.submit-btn:hover { filter: brightness(.95); box-shadow: 0 10px 24px rgba(7, 168, 169, .34); }
.auth-card .auth-btn.submit-btn:active { transform: translateY(1px); }
.auth-card .auth-btn.submit-btn:focus-visible { outline: 3px solid rgba(7, 168, 169, .4); outline-offset: 2px; }
.auth-card .auth-btn.submit-btn:disabled { opacity: .6; cursor: progress; box-shadow: none; }

.auth-card .auth-or { position: relative; margin: 20px 0 14px; text-align: center; color: var(--auth-muted); font-size: 12.5px; }
.auth-card .auth-or::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid var(--auth-line); }
.auth-card .auth-or span { position: relative; padding: 0 12px; background: #fff; }
.auth-card .auth-social { display: flex; gap: 10px; }
.auth-card .auth-social-btn {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px;
  border: 1.5px solid var(--auth-line); border-radius: 999px; color: var(--auth-ink); font-weight: 600; font-size: 14px; text-decoration: none; background: #fff;
}
.auth-card .auth-social-btn:hover { background: var(--auth-bg-soft); color: var(--auth-ink); }
.auth-card .auth-switch { margin: 20px 0 0; text-align: center; font-size: 14.5px; color: var(--auth-muted); }

/* create-account form */
.auth-card .auth-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.auth-card .auth-grid .auth-span { grid-column: 1 / -1; }
.auth-card .auth-captcha { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; }
.auth-card .auth-captcha img { flex: 0 0 auto; width: 130px; height: 42px; border: 1.5px solid var(--auth-line); border-radius: 12px; background: #f4f6fb; }
.auth-card .auth-captcha img:not([src]) { visibility: hidden; }
.auth-card .auth-refresh { flex: 0 0 40px; height: 40px; border: 0; border-radius: 10px; background: var(--auth-bg-soft); color: var(--auth-muted); cursor: pointer; }
.auth-card .auth-captcha input { flex: 1; min-width: 0; height: 46px; text-transform: uppercase; letter-spacing: 2px; }
.auth-card .auth-captcha input::placeholder { text-transform: none; letter-spacing: 0; }

/* status messages coming from the shared form-login include */
.auth-card .alert.validation { margin: 0 0 16px; padding: 11px 14px; border: 0; border-radius: 12px; font-size: 14px; position: relative; }
.auth-card .alert.validation p { margin: 0; padding-right: 22px; }
.auth-card .alert-danger { background: #fdecee; color: var(--auth-danger); }
.auth-card .alert-success { background: #e6f7ee; color: #17784a; }
.auth-card .alert-info { background: #eaf1fb; color: #24518f; }
.auth-card .alert.validation .close { position: absolute; top: 6px; right: 10px; padding: 0; opacity: .6; background: transparent; border: 0; font-size: 20px; line-height: 1; color: inherit; }

/* ---------- login modal ---------- */
.auth-modal .modal-dialog { max-width: 900px; margin: 1.25rem auto; padding: 0 12px; }
.auth-modal .modal-content { position: relative; background: transparent; border: 0; box-shadow: none; }
.auth-modal .auth-card { box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.auth-modal .auth-close {
  position: absolute; z-index: 5; top: 16px; right: 28px; width: 40px; height: 40px; padding: 0;
  display: flex; align-items: center; justify-content: center;
  border: 0; border-radius: 50%; background: #fff; color: #1d2340; line-height: 1; text-align: center;
  box-shadow: 0 2px 10px rgba(29, 35, 64, .16); opacity: 1; text-shadow: none; cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}
.auth-modal .auth-close svg { display: block; width: 18px; height: 18px; }
.auth-modal .auth-close:hover { transform: scale(1.06); box-shadow: 0 4px 14px rgba(29, 35, 64, .24); }
.auth-modal .auth-close:focus-visible { outline: 3px solid rgba(7, 168, 169, .5); }

/* forgot password (same look) */
.auth-card.auth-single { grid-template-columns: 1fr; max-width: 460px; }
.auth-card.auth-single .auth-body { padding: 38px 36px 30px; }
.auth-card .auth-back { display: block; margin: 18px 0 0; text-align: center; font-size: 14.5px; }

/* ---------- tablets and phones ---------- */
@media (max-width: 767.98px) {
  .auth-card { grid-template-columns: 1fr; }
  .auth-card .auth-hero { padding: 24px 60px 18px 22px; gap: 8px; }
  .auth-card .auth-perks, .auth-card .auth-art { display: none; }
  .auth-card .auth-hero-copy h2 { font-size: 22px; margin-bottom: 4px; }
  .auth-card .auth-hero-copy h2 br { display: none; }
  .auth-card .auth-hero-copy p { margin: 0; font-size: 14px; }
  .auth-card .auth-body { padding: 26px 22px 24px; }
  .auth-card .auth-title { font-size: 24px; }

  /* modal becomes a full-width sheet */
  .auth-modal .modal-dialog { max-width: none; margin: 0; padding: 0; min-height: 100%; align-items: flex-end; }
  .auth-modal .modal-content { width: 100%; }
  .auth-modal .auth-card { border-radius: 24px 24px 0 0; max-height: 96vh; overflow-y: auto; -webkit-overflow-scrolling: touch; }
  .auth-modal .auth-close { top: 12px; right: 12px; }
}
@media (max-width: 420px) {
  .auth-card .auth-grid { grid-template-columns: 1fr; }
  .auth-card .auth-social { flex-direction: column; }
  .auth-card .auth-social-btn { flex: none; width: 100%; }
  .auth-card .auth-body { padding: 22px 18px 22px; }
}
@media (max-height: 640px) and (min-width: 768px) {
  .auth-card .auth-body { padding-top: 26px; padding-bottom: 20px; }
}

/* follow the shop's brand colour (set on .auth-card via --auth-accent) */
@supports (color: color-mix(in srgb, red 50%, blue)) {
  .auth-card input:focus { box-shadow: 0 0 0 4px color-mix(in srgb, var(--auth-accent) 18%, transparent); }
  .auth-card .auth-btn.submit-btn { box-shadow: 0 8px 20px color-mix(in srgb, var(--auth-accent) 30%, transparent); }
  .auth-card .auth-btn.submit-btn:hover { box-shadow: 0 10px 24px color-mix(in srgb, var(--auth-accent) 36%, transparent); }
}
.auth-card .auth-back { margin: 18px 0 0; text-align: center; }

/* ---------- header: account icon + dropdown (replaces the compare icon and the "Sign in | Join" text) ---------- */
.logo-header .helpful-links ul li.account-item { position: relative; margin-top: 20px; margin-right: 0; }
.logo-header .helpful-links ul li.account-item > a.acct-btn { display: inline-block; position: relative; color: #143250; font-size: 20px; line-height: 1; padding: 2px 4px; }
.logo-header .helpful-links ul li.account-item > a.acct-btn:hover { color: #07a8a9; }
.account-item .acct-menu {
  display: none; position: absolute; z-index: 60; top: 100%; right: -8px; width: 250px; padding-top: 12px; text-align: left;
}
.account-item .acct-menu > ul {
  margin: 0; padding: 8px 0; list-style: none; background: #fff; border-radius: 12px;
  box-shadow: 0 12px 34px rgba(29, 35, 64, .18); border: 1px solid #eceef6;
}
.logo-header .helpful-links .account-item .acct-menu > ul > li { display: block; margin: 0; text-align: left; }
.account-item .acct-menu a {
  display: flex !important; align-items: center; gap: 12px; padding: 11px 20px; color: #1d2340; font-size: 15px; line-height: 1.3; text-decoration: none; white-space: nowrap;
}
.account-item .acct-menu a:hover { background: #f4f6fb; color: #07a8a9; }
.account-item .acct-menu a i { width: 18px; text-align: center; color: #6b7191; font-size: 14px; }
.account-item .acct-menu a:hover i { color: #07a8a9; }
.account-item .acct-menu li.acct-sep { margin-top: 6px; border-top: 1px solid #eceef6; padding-top: 6px; }
.account-item .acct-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 2px; border-radius: 10px; background: #ff5500; color: #fff; font-size: 12px; }
@media (hover: hover) { .account-item:hover .acct-menu { display: block; } }
.account-item.open .acct-menu { display: block; }
body.modal-open .account-item .acct-menu { display: none !important; }
@media (max-width: 575.98px) { .account-item .acct-menu { right: -4px; width: 230px; } }
