/* Nakhishly — premium customer auth (login / signup / reset) */

.account-auth-body {
  background: linear-gradient(165deg, #faf8f5 0%, #f4efe6 48%, #f8f6f2 100%);
}

.account-auth-page.account-section {
  padding: 40px 16px 72px;
}

.account-auth-page {
  padding: 40px 16px 72px;
  min-height: calc(100vh - 180px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.account-auth-page > .container {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  padding: 0;
}

.account-auth-page > .container.container--auth-wide {
  max-width: 520px;
}

.auth-shell {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
}

.auth-shell--wide {
  max-width: 520px;
}

.auth-shell--wide > .container,
.account-auth-page .auth-shell--wide {
  max-width: 520px;
}

.auth-shell-brand {
  text-align: center;
  margin-bottom: 28px;
}

.auth-shell-logo {
  display: inline-block;
  margin-bottom: 18px;
  text-decoration: none;
  line-height: 0;
}

.auth-shell-logo img {
  height: 54px;
  width: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 6px 14px rgba(17, 24, 39, 0.08));
}

.auth-shell-title {
  font-family: 'Lora', serif;
  font-size: clamp(1.65rem, 4vw, 2rem);
  font-weight: 600;
  color: #111827;
  margin: 0 0 10px;
  letter-spacing: 0.01em;
}

.auth-shell-sub {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.6;
  margin: 0 auto;
  max-width: 340px;
}

.auth-shell-card {
  border: 1px solid rgba(201, 162, 39, 0.14);
  border-radius: 22px;
  background: #fff;
  box-shadow:
    0 1px 2px rgba(17, 24, 39, 0.04),
    0 16px 40px rgba(17, 24, 39, 0.08);
  padding: 28px 26px 24px;
}

.auth-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 14px;
  background: #f3f0ea;
  margin-bottom: 22px;
}

.auth-tab {
  flex: 1;
  border: 0;
  background: transparent;
  border-radius: 11px;
  padding: 11px 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #6b7280;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.auth-tab:hover:not(.is-active) {
  color: #374151;
  background: rgba(255, 255, 255, 0.55);
}

.auth-tab.is-active {
  background: #111827;
  color: #fff;
  box-shadow: 0 6px 16px rgba(17, 24, 39, 0.18);
}

.auth-panel[hidden] {
  display: none !important;
}

.account-auth-page .auth-form .form-group {
  margin-bottom: 16px;
}

.account-auth-page .auth-form .form-group label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #374151;
  margin-bottom: 8px;
}

.account-auth-page .auth-form .form-group input {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  height: 48px;
  padding: 0 14px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fafafa;
  font-size: 15px;
  color: #111827;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.account-auth-page .auth-form .form-group input::placeholder {
  color: #9ca3af;
}

.account-auth-page .auth-form .form-group input:focus {
  outline: none;
  border-color: #c9a227;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.16);
}

.auth-forgot-wrap {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

.auth-inline-link {
  font-size: 12px;
  font-weight: 600;
  color: #9a7b1a;
  text-decoration: none;
}

.auth-inline-link:hover {
  color: #7a6114;
  text-decoration: underline;
}

.auth-submit {
  width: 100%;
  margin-top: 10px;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.account-auth-page .auth-submit.btn-dark {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border: 1px solid rgba(201, 162, 39, 0.25);
  color: #fff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.18);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.account-auth-page .auth-submit.btn-dark:hover {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.22);
}

.account-auth-page .auth-submit.btn-outline {
  background: #fff;
  border: 1px solid #d1d5db;
  color: #111827;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
}

.account-auth-page .auth-submit.btn-outline:hover {
  border-color: #c9a227;
  color: #111827;
  background: #fffdf8;
}

.auth-help {
  font-size: 12px;
  color: #6b7280;
  line-height: 1.5;
  margin-top: 8px;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 18px;
  color: #9ca3af;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, #e5e7eb, transparent);
}

.auth-switch {
  text-align: center;
  font-size: 13px;
  color: #6b7280;
  margin: 22px 0 0;
  padding-top: 18px;
  border-top: 1px solid #f3f4f6;
}

.auth-switch a {
  color: #111827;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(201, 162, 39, 0.45);
}

.auth-switch a:hover {
  color: #9a7b1a;
}

.auth-shell-foot {
  text-align: center;
  font-size: 12px;
  color: #9ca3af;
  margin: 20px 0 0;
}

.auth-shell-foot a {
  color: #6b7280;
  font-weight: 600;
  text-decoration: none;
}

.auth-shell-foot a:hover {
  color: #111827;
}

.auth-optional {
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: #9ca3af;
  font-size: 11px;
}

.auth-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 13px;
  line-height: 1.45;
  color: #374151;
}

.auth-check input {
  margin-top: 3px;
  accent-color: #c9a227;
}

.auth-check--required span {
  font-weight: 600;
}

.auth-password-rules {
  list-style: none;
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fafafa;
  border: 1px solid #eef0f3;
  display: grid;
  gap: 5px;
}

.auth-password-rules li {
  font-size: 12px;
  color: #9ca3af;
  padding-left: 18px;
  position: relative;
}

.auth-password-rules li::before {
  content: "○";
  position: absolute;
  left: 0;
  color: #d1d5db;
}

.auth-password-rules li.is-ok {
  color: #047857;
  font-weight: 600;
}

.auth-password-rules li.is-ok::before {
  content: "✓";
  color: #059669;
}

.auth-notice {
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.55;
}

.auth-notice--success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.auth-notice--error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.account-auth-page .form-row.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.account-auth-page .form-error {
  margin-top: 6px;
  font-size: 12px;
  color: #b91c1c;
}

@media (max-width: 540px) {
  .account-auth-page {
    padding: 28px 14px 56px;
    align-items: flex-start;
  }

  .auth-shell-card {
    padding: 22px 18px 20px;
    border-radius: 18px;
  }

  .account-auth-page .form-row.two-col {
    grid-template-columns: 1fr;
  }
}
