/* ============================================================
   SHELBY HIVER — ATELIER AUTHENTICATION & CLIENT ACCOUNT CSS
   Formal, Minimalist, High-Fashion Luxury Experience
   Exact Typography Match (Space Grotesk + Plus Jakarta Sans)
   Zero Casual Emojis · Clean Geometric SVGs · High Contrast
   ============================================================ */

:root {
  /* High-contrast Luxury Atelier Palette */
  --auth-black: #0d0d0f;
  --auth-black-hover: #1a1a1f;
  --auth-coral: #ff3f6c;
  --auth-coral-hover: #e72e5b;
  --auth-bg: #fafafc;
  --auth-card: #ffffff;
  --auth-input-bg: #f5f5f7;
  --auth-input-border: #e3e3e8;
  --auth-border: #e6e6ea;
  --auth-text: #1a1a24;
  --auth-muted: #7c7e8c;
  --auth-shadow: 0 16px 40px rgba(0, 0, 0, 0.06);

  /* Shared Typography from Main Page */
  --f-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --f-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --f-mono: 'Space Grotesk', monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ——— NAVBAR USER AUTH WIDGET ——— */
.user-auth-widget {
  position: relative;
  display: flex;
  align-items: center;
}

/* Logged In Pill / Profile Action */
.user-profile-pill,
.user-signin-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 4px 6px;
  min-width: 46px;
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.user-profile-pill:hover,
.user-signin-btn:hover {
  color: var(--accent-coral);
}

.user-avatar-circle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--auth-black);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-display);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

html:not([data-theme="dark"]) .user-avatar-circle {
  background: #111111;
  color: #ffffff;
}

.user-pill-name {
  font-family: var(--f-display);
  font-size: 10px;
  font-weight: 700;
  margin-top: 3px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
}

/* Dropdown Menu (Atelier Minimal Luxury Dropdown) */
.user-dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  width: 270px;
  background: #ffffff;
  border: 1px solid var(--auth-border);
  border-radius: 10px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.14);
  padding: 16px;
  display: none;
  flex-direction: column;
  z-index: 500;
  animation: dropMenuIn 0.2s var(--ease);
}

html[data-theme="dark"] .user-dropdown-menu {
  background: #151518;
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45);
}

.user-dropdown-menu.open {
  display: flex;
}

@keyframes dropMenuIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.udm-header {
  padding-bottom: 12px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--border-light, #eaeaec);
}

.udm-welcome {
  font-family: var(--f-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--auth-muted);
  text-transform: uppercase;
}

.udm-name {
  font-family: var(--f-display);
  font-size: 15px;
  font-weight: 800;
  color: var(--text-primary);
  margin-top: 2px;
  letter-spacing: -0.01em;
}

.udm-email {
  font-family: var(--f-body);
  font-size: 11.5px;
  color: var(--auth-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 2px;
}

.udm-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 6px;
  font-family: var(--f-body);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s var(--ease);
}

.udm-item svg {
  flex-shrink: 0;
  color: var(--auth-muted);
  transition: color 0.15s;
}

.udm-item:hover {
  background: var(--bg-secondary, #f5f5f7);
  color: var(--text-primary);
}

.udm-item:hover svg {
  color: var(--text-primary);
}

.udm-item.logout {
  color: #d32f2f;
  border-top: 1px solid var(--border-light, #eaeaec);
  margin-top: 6px;
  padding-top: 12px;
}

.udm-item.logout svg {
  color: #d32f2f;
}

.udm-item.logout:hover {
  background: rgba(211, 47, 47, 0.06);
}

/* ——— STANDALONE LOGIN / REGISTER PAGES ——— */
.auth-page-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--auth-bg);
  color: var(--auth-text);
  font-family: var(--f-body);
  -webkit-font-smoothing: antialiased;
}

.auth-page-nav {
  padding: 18px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border-bottom: 1px solid var(--auth-border);
}

@media (max-width: 600px) {
  .auth-page-nav {
    padding: 14px 20px;
  }
}

.auth-nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--auth-black);
}

.auth-nav-brand img {
  height: 32px;
  width: auto;
  object-fit: contain;
}

.auth-nav-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--f-display);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--auth-black);
  text-decoration: none;
  padding: 8px 16px;
  border: 1px solid var(--auth-border);
  border-radius: 999px;
  transition: all 0.2s var(--ease);
}

.auth-nav-back:hover {
  background: var(--auth-black);
  color: #ffffff;
  border-color: var(--auth-black);
}

/* Auth Center Container */
.auth-main-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 50px 20px;
}

.auth-card-shell {
  width: 100%;
  max-width: 440px;
  background: var(--auth-card);
  border: 1px solid var(--auth-border);
  border-radius: 12px;
  box-shadow: var(--auth-shadow);
  padding: 38px 34px;
}

@media (max-width: 480px) {
  .auth-card-shell {
    padding: 28px 20px;
    border-radius: 10px;
  }
}

/* Luxury Segmented Tabs */
.auth-tabs-toggle {
  display: flex;
  background: #f1f1f4;
  padding: 4px;
  border-radius: 8px;
  margin-bottom: 26px;
}

.auth-tab-link {
  flex: 1;
  text-align: center;
  font-family: var(--f-display);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 10px 0;
  color: var(--auth-muted);
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.2s var(--ease);
}

.auth-tab-link.active {
  background: #ffffff;
  color: var(--auth-black);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.auth-heading-row {
  margin-bottom: 24px;
  text-align: left;
}

.auth-form-tag {
  display: inline-block;
  font-family: var(--f-display);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--auth-muted);
  margin-bottom: 6px;
}

.auth-form-heading {
  font-family: var(--f-display);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--auth-black);
  margin: 0 0 6px 0;
}

.auth-form-sub {
  font-family: var(--f-body);
  font-size: 13px;
  color: var(--auth-muted);
  line-height: 1.5;
  margin: 0;
}

/* Error Banner */
.auth-error-banner {
  display: none;
  background: #fff5f5;
  border: 1px solid #ffd6d6;
  color: #c92a2a;
  padding: 11px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 20px;
  line-height: 1.4;
}

/* Form Fields */
.auth-field-block {
  margin-bottom: 18px;
}

.auth-field-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--f-display);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--auth-text);
  margin-bottom: 7px;
}

.auth-field-label a {
  font-family: var(--f-body);
  text-transform: none;
  font-weight: 600;
  font-size: 12px;
  color: var(--auth-coral);
  text-decoration: none;
}

.auth-field-label a:hover {
  text-decoration: underline;
}

.auth-input-wrap {
  display: flex;
  align-items: center;
  background: var(--auth-input-bg);
  border: 1px solid var(--auth-input-border);
  border-radius: 8px;
  padding: 0 14px;
  transition: all 0.2s var(--ease);
}

.auth-input-wrap:focus-within {
  background: #ffffff;
  border-color: var(--auth-black);
  box-shadow: 0 0 0 3px rgba(13, 13, 15, 0.08);
}

.auth-input-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--auth-muted);
  margin-right: 12px;
  flex-shrink: 0;
}

.auth-input-wrap input {
  width: 100%;
  padding: 13px 0;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--f-body);
  font-size: 13.5px;
  color: var(--auth-text);
}

.auth-input-wrap input::placeholder {
  color: #a8aab5;
}

.auth-toggle-pwd {
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--auth-muted);
  cursor: pointer;
  padding: 4px;
  margin-left: 6px;
  transition: color 0.15s;
}

.auth-toggle-pwd:hover {
  color: var(--auth-black);
}

/* Formal Luxury Action Button */
.auth-action-btn {
  width: 100%;
  background: var(--auth-black);
  color: #ffffff;
  font-family: var(--f-display);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 20px;
  border: none;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

.auth-action-btn:hover {
  background: var(--auth-black-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Discreet Demo Access Button */
.auth-demo-btn {
  width: 100%;
  background: transparent;
  color: var(--auth-text);
  border: 1px dashed var(--auth-border);
  font-family: var(--f-display);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 11px;
  border-radius: 8px;
  margin-top: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s var(--ease);
}

.auth-demo-btn:hover {
  border-color: var(--auth-black);
  background: #f5f5f7;
}

.auth-switch-footer {
  margin-top: 22px;
  text-align: center;
  font-size: 12.5px;
  color: var(--auth-muted);
}

.auth-switch-footer a {
  color: var(--auth-black);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-switch-footer a:hover {
  color: var(--auth-coral);
}

@media (max-width: 768px) {
  .user-profile-pill,
  .user-signin-btn {
    padding: 6px 4px;
    min-width: auto;
  }
  .user-avatar-circle {
    width: 24px;
    height: 24px;
    font-size: 11px;
    font-weight: 800;
  }
}
