/* =============================================================
   GO ULTRA AI — USER PAGES (auth + edit)
   Targets:
     - /user/login        (page-user-login)
     - /user/register     (page-user-register)
     - /user/password     (page-user-password)
     - /user/{uid}/edit   (page-user-N + user-logged-in + #user-form)
   Load via Asset Injector with condition: body.path-user
   Companion JS: goultra-auth.js (required)
   ============================================================= */


/* -------------------------------------------------------------
   1. PAGE SHELL — ambient gradient + neutralise theme defaults
   ------------------------------------------------------------- */

body.path-user {
  background: #ffffff;
  background: linear-gradient(180deg, #ffffff 0%, #f0f4f8 55%, #e8f0fe 100%);
  min-height: 100vh;
}

/* Authenticated edit page — softer cream tint */
body.path-user.user-logged-in {
  background: #ffffff;
  background: linear-gradient(180deg, #ffffff 0%, #fefcfa 55%, #f8fafc 100%);
}

/* Drupal sometimes renders a default page title above the canvas. */
body.path-user h1.page-header,
body.path-user .region-title,
body.path-user .page-title-block {
  display: none !important;
}

/* Soft fade-in once JS has restructured the DOM (prevents FOUC) */
body.path-user .dialog-off-canvas-main-canvas {
  opacity: 0;
  transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
body.path-user.guu-auth-ready .dialog-off-canvas-main-canvas {
  opacity: 1;
}
/* Fallback: if JS never runs, force visibility after 1.2s */
@keyframes guu-auth-fallback-show { to { opacity: 1; } }
body.path-user .dialog-off-canvas-main-canvas {
  animation: guu-auth-fallback-show 0.2s ease 1.2s forwards;
}
body.path-user.guu-auth-ready .dialog-off-canvas-main-canvas {
  animation: none;
}


/* -------------------------------------------------------------
   2. SHELL — split layout (auth) + centered layout (edit)
   ------------------------------------------------------------- */

.guu-auth-shell {
  display: flex;
  width: 100%;
  min-height: calc(100vh - 64px);
  position: relative;
}

@media (max-width: 991px) {
  .guu-auth-shell {
    flex-direction: column;
    min-height: auto;
  }
}

/* Centered mode (edit page) — no showcase, single column */
.guu-auth-shell--centered {
  justify-content: center;
  align-items: flex-start;
  padding: 48px 24px 64px;
}

@media (max-width: 767px) {
  .guu-auth-shell--centered {
    padding: 24px 16px 40px;
  }
}


/* -------------------------------------------------------------
   3. SHOWCASE PANEL (LEFT) — brand storytelling on dark
   ------------------------------------------------------------- */

.guu-auth-showcase {
  flex: 1 1 50%;
  background: #1a1a2e;
  background: linear-gradient(135deg, #1a1a2e 0%, #2d2d50 100%);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 64px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.guu-auth-showcase::before,
.guu-auth-showcase::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}
.guu-auth-showcase::before {
  top: -220px;
  right: -180px;
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, rgba(247, 112, 98, 0.18), transparent 65%);
}
.guu-auth-showcase::after {
  bottom: -180px;
  left: -120px;
  width: 540px;
  height: 540px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.2), transparent 65%);
}

.guu-auth-showcase-inner {
  position: relative;
  max-width: 480px;
  width: 100%;
}

.guu-auth-showcase-inner::before {
  content: '';
  position: absolute;
  inset: -80px;
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.05) 1px, transparent 0);
  background-size: 32px 32px;
  z-index: -1;
  opacity: 0.7;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}

.guu-auth-logo {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 56px;
  text-decoration: none;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 22px;
  letter-spacing: -0.02em;
  line-height: 1;
}
.guu-auth-logo-go {
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
}
.guu-auth-logo-ultra {
  font-weight: 800;
  color: #ffffff;
}
.guu-auth-logo-ai {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  border: 1.5px solid rgba(247, 112, 98, 0.4);
  border-radius: 4px;
  padding: 2px 6px;
  margin-left: 6px;
  background: linear-gradient(135deg, #f77062, #fe5196, #bc4cf4);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  letter-spacing: 0.04em;
}

.guu-auth-showcase-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin: 0 0 24px;
}
.guu-auth-showcase-title em {
  font-style: normal;
  background: linear-gradient(135deg, #f77062, #fe5196, #bc4cf4);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.guu-auth-showcase-tagline {
  font-family: 'DM Sans', sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 48px;
}

.guu-auth-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.guu-auth-features li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
}
.guu-auth-features li i {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 13px;
}
.guu-auth-features li strong {
  display: block;
  color: rgba(255, 255, 255, 0.95);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 2px;
  letter-spacing: -0.01em;
}

.guu-auth-showcase-trust {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.02em;
}

@media (max-width: 991px) {
  .guu-auth-showcase {
    flex: 0 0 auto;
    padding: 36px 24px 40px;
    text-align: center;
  }
  .guu-auth-showcase-inner {
    margin: 0 auto;
    max-width: 520px;
  }
  .guu-auth-logo { margin-bottom: 28px; }
  .guu-auth-showcase-title {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
    margin-bottom: 12px;
  }
  .guu-auth-showcase-tagline { font-size: 15px; margin-bottom: 0; }
  .guu-auth-features,
  .guu-auth-showcase-trust { display: none; }
}


/* -------------------------------------------------------------
   4. FORM CARD (RIGHT, or centered for edit)
   ------------------------------------------------------------- */

.guu-auth-card {
  flex: 1 1 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 64px;
  background: #ffffff;
  background: linear-gradient(180deg, #ffffff 0%, #fefcfa 100%);
}

@media (max-width: 991px) {
  .guu-auth-card { padding: 40px 24px 56px; }
}
@media (max-width: 480px) {
  .guu-auth-card { padding: 32px 20px 48px; }
}

.guu-auth-card-inner {
  width: 100%;
  max-width: 420px;
}

/* Wider variant for edit settings page (real card with border + shadow) */
.guu-auth-card--wide {
  flex: 0 1 auto;
  align-items: flex-start;
  padding: 0;
  background: transparent;
  width: 100%;
  max-width: 680px;
}
.guu-auth-card--wide .guu-auth-card-inner {
  max-width: 100%;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 36px 40px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 8px 32px rgba(15, 23, 42, 0.05);
}
@media (max-width: 767px) {
  .guu-auth-card--wide .guu-auth-card-inner {
    padding: 28px 22px;
    border-radius: 14px;
  }
}

/* Heading block */
.guu-auth-heading {
  margin-bottom: 28px;
}
.guu-auth-h1 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #0f172a;
  margin: 0 0 8px;
}
.guu-auth-subtitle {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: #64748b;
  line-height: 1.55;
  margin: 0;
}

@media (max-width: 480px) {
  .guu-auth-h1 { font-size: 26px; }
  .guu-auth-subtitle { font-size: 14px; }
}

/* Edit page heading is slightly tighter (denser settings UI) */
.guu-auth-card--wide .guu-auth-h1 { font-size: 26px; }
.guu-auth-card--wide .guu-auth-subtitle { font-size: 14px; }


/* -------------------------------------------------------------
   5. TAB NAVIGATION — segmented pill (auth pages only)
   ------------------------------------------------------------- */

body.path-user nav.tabs {
  margin: 0 0 28px;
}
body.path-user nav.tabs h2.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

body.path-user .nav-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  margin: 0;
  background: #f1f5f9;
  border-radius: 9999px;
  border: none;
  list-style: none;
}
body.path-user .nav-tabs .nav-item {
  flex: 1;
  margin: 0;
}
body.path-user .nav-tabs .nav-link {
  display: block;
  text-align: center;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  color: #64748b;
  padding: 9px 10px;
  border-radius: 9999px;
  border: none;
  background: transparent;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s cubic-bezier(0.4, 0, 0.2, 1),
              background 0.2s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
body.path-user .nav-tabs .nav-link:hover {
  color: #1a1a2e;
  background: transparent;
}
body.path-user .nav-tabs .nav-item.active .nav-link,
body.path-user .nav-tabs .nav-link.active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
}

@media (max-width: 480px) {
  body.path-user .nav-tabs .nav-link {
    font-size: 11.5px;
    padding: 8px 6px;
  }
}

/* Edit page — hide the original Drupal tabs entirely.
   JS replaces them with a custom breadcrumb row. */
body.path-user.user-logged-in nav.tabs {
  display: none;
}


/* -------------------------------------------------------------
   5b. EDIT PAGE — breadcrumb-style nav row (back + context)
   ------------------------------------------------------------- */

.guu-edit-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 24px;
  padding: 0 0 18px;
  border-bottom: 1px solid #e2e8f0;
  flex-wrap: wrap;
}

.guu-edit-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  text-decoration: none;
  padding: 6px 12px 6px 10px;
  border-radius: 9999px;
  background: transparent;
  transition: color 0.2s cubic-bezier(0.4, 0, 0.2, 1),
              background 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.guu-edit-back i {
  font-size: 12px;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.guu-edit-back:hover {
  color: #1a73e8;
  background: rgba(26, 115, 232, 0.06);
  text-decoration: none;
}
.guu-edit-back:hover i {
  transform: translateX(-2px);
}
.guu-edit-back:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.3);
}

.guu-edit-context {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'DM Sans', sans-serif;
  font-size: 11.5px;
  font-weight: 600;
  color: #0d9488;
  background: rgba(13, 148, 136, 0.08);
  border: 1px solid rgba(13, 148, 136, 0.18);
  padding: 5px 10px;
  border-radius: 9999px;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.guu-edit-context i {
  font-size: 10px;
}

@media (max-width: 480px) {
  .guu-edit-nav {
    margin-bottom: 18px;
    padding-bottom: 14px;
  }
  .guu-edit-back { font-size: 12.5px; }
  .guu-edit-context { font-size: 10.5px; padding: 4px 9px; }
}


/* -------------------------------------------------------------
   6. FORM FIELDS — inputs, labels, descriptions
   ------------------------------------------------------------- */

body.path-user form {
  margin: 0;
}

body.path-user form .js-form-item,
body.path-user form .form-item {
  margin-bottom: 18px;
}

body.path-user form label {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #334155;
  margin-bottom: 6px;
  line-height: 1.4;
}

body.path-user form label.form-required::after,
body.path-user form .form-required::after {
  content: '*';
  color: #f77062;
  margin-left: 4px;
  font-weight: 700;
}
body.path-user form label.js-form-required::after { background: none; }

body.path-user form input.form-control:not([type="hidden"]),
body.path-user form input[type="text"]:not([type="hidden"]),
body.path-user form input[type="email"],
body.path-user form input[type="password"],
body.path-user form input.required:not([type="hidden"]) {
  width: 100%;
  max-width: 100%;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  line-height: 1.4;
  color: #0f172a;
  padding: 12px 16px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  transition: background 0.2s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.2s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: none;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}
body.path-user form input::placeholder { color: #94a3b8; }
body.path-user form input.form-control:not([type="hidden"]):hover,
body.path-user form input.required:not([type="hidden"]):hover {
  border-color: #cbd5e1;
}
body.path-user form input.form-control:not([type="hidden"]):focus,
body.path-user form input.required:not([type="hidden"]):focus {
  background: #ffffff;
  border-color: #1a73e8;
  box-shadow: 0 0 0 4px rgba(26, 115, 232, 0.12);
}

/* Autofill polish */
body.path-user form input:-webkit-autofill,
body.path-user form input:-webkit-autofill:hover,
body.path-user form input:-webkit-autofill:focus {
  -webkit-text-fill-color: #0f172a;
  -webkit-box-shadow: 0 0 0px 1000px #f8fafc inset;
  box-shadow: 0 0 0px 1000px #f8fafc inset;
  transition: background-color 5000s ease-in-out 0s;
}

/* Description text below input */
body.path-user form small.description,
body.path-user form .description,
body.path-user form .text-muted {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: #94a3b8;
  margin-top: 6px;
  line-height: 1.5;
}
body.path-user form .description em {
  font-style: normal;
  font-weight: 600;
  color: #475569;
}
body.path-user form .description a {
  color: #1a73e8;
  text-decoration: none;
  font-weight: 500;
}
body.path-user form .description a:hover {
  text-decoration: underline;
  color: #0c5ec7;
}

/* Inline paragraph hint (password page) */
body.path-user form > p {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: #475569;
  background: rgba(26, 115, 232, 0.04);
  border-left: 3px solid #1a73e8;
  padding: 10px 14px;
  border-radius: 8px;
  margin: 0 0 18px;
  line-height: 1.5;
}


/* -------------------------------------------------------------
   6b. SELECT DROPDOWN (timezone)
   ------------------------------------------------------------- */

body.path-user form select,
body.path-user form select.form-select {
  width: 100%;
  max-width: 100%;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  line-height: 1.4;
  color: #0f172a;
  padding: 12px 40px 12px 16px;
  background-color: #f8fafc;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2364748b'%3E%3Cpath d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px 18px;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.2s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}
body.path-user form select:hover {
  border-color: #cbd5e1;
}
body.path-user form select:focus {
  outline: none;
  background-color: #ffffff;
  border-color: #1a73e8;
  box-shadow: 0 0 0 4px rgba(26, 115, 232, 0.12);
}


/* -------------------------------------------------------------
   7. DETAILS PANELS — OTP (register) + Locale (edit)
   ------------------------------------------------------------- */

body.path-user #otp-form,
body.path-user details#edit-timezone,
body.path-user .form-card {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 18px 18px 6px;
  margin: 0 0 18px;
}

body.path-user #otp-form > summary,
body.path-user details#edit-timezone > summary,
body.path-user details.form-card > summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #334155;
  margin: 0 0 12px;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}
body.path-user #otp-form > summary::-webkit-details-marker,
body.path-user details#edit-timezone > summary::-webkit-details-marker,
body.path-user details.form-card > summary::-webkit-details-marker {
  display: none;
}
body.path-user #otp-form > summary .summary,
body.path-user details#edit-timezone > summary .summary {
  display: none;
}

/* OTP variant — teal-tinted (verification flow) */
body.path-user #otp-form {
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.04), rgba(26, 115, 232, 0.04));
  border-color: rgba(13, 148, 136, 0.18);
}
body.path-user #otp-form > summary {
  color: #0d9488;
  cursor: default;
}
body.path-user #otp-form > summary::before {
  content: '\f0e0'; /* fa-envelope */
  font-family: 'Font Awesome 6 Pro', 'Font Awesome 6 Free', 'Font Awesome 5 Pro', 'Font Awesome 5 Free';
  font-weight: 900;
  font-size: 12px;
  color: #0d9488;
}

/* Timezone variant — neutral, with globe icon + chevron */
body.path-user details#edit-timezone > summary::before {
  content: '\f0ac'; /* fa-globe */
  font-family: 'Font Awesome 6 Pro', 'Font Awesome 6 Free', 'Font Awesome 5 Pro', 'Font Awesome 5 Free';
  font-weight: 900;
  font-size: 12px;
  color: #64748b;
}
body.path-user details#edit-timezone > summary::after {
  content: '\f078'; /* fa-chevron-down */
  font-family: 'Font Awesome 6 Pro', 'Font Awesome 6 Free', 'Font Awesome 5 Pro', 'Font Awesome 5 Free';
  font-weight: 900;
  font-size: 10px;
  color: #94a3b8;
  margin-left: auto;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
body.path-user details#edit-timezone:not([open]) > summary::after {
  transform: rotate(-90deg);
}

/* OTP input — center-aligned, tracked, code-style */
body.path-user #otp-form input[name="otp"] {
  letter-spacing: 0.45em;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 18px;
  text-align: center;
  padding-left: 16px;
}


/* -------------------------------------------------------------
   7b. PASSWORD STRENGTH METER + CONFIRM MESSAGE (edit page)
   ------------------------------------------------------------- */

body.path-user .password-strength {
  margin-top: 10px;
  margin-bottom: 4px;
}
body.path-user .password-strength__meter {
  width: 100%;
  height: 6px;
  background: #e2e8f0;
  border-radius: 9999px;
  overflow: hidden;
  margin-bottom: 8px;
}
body.path-user .password-strength__indicator {
  height: 100%;
  width: 0;
  background: #cbd5e1;
  background: linear-gradient(90deg, #f77062 0%, #fe5196 50%, #bc4cf4 100%);
  border-radius: 9999px;
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              background 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
/* Drupal toggles is-weak / is-strong on the indicator */
body.path-user .password-strength__indicator.is-weak {
  background: #d93025;
}
body.path-user .password-strength__indicator.is-strong {
  background: #0d9488;
}

body.path-user .password-strength__title {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: #94a3b8;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
body.path-user .password-strength__text {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #475569;
}

body.path-user .password-confirm-message {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: #94a3b8;
  margin-top: 8px;
}
body.path-user .password-confirm-message span[data-drupal-selector="password-match-status-text"] {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  color: #475569;
}

body.path-user .password-suggestions {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: #475569;
  background: rgba(245, 158, 11, 0.06);
  border: 1px solid rgba(245, 158, 11, 0.2);
  padding: 10px 14px;
  border-radius: 8px;
  margin-top: 10px;
  line-height: 1.5;
}
body.path-user .password-suggestions ul {
  margin: 6px 0 0;
  padding-left: 20px;
}
body.path-user .password-suggestions li {
  margin: 2px 0;
}


/* -------------------------------------------------------------
   8. BUTTONS
   ------------------------------------------------------------- */

body.path-user .form-actions {
  margin: 24px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

body.path-user #send-otp-btn { width: 100%; }
body.path-user #send-otp-btn button { width: 100%; }

body.path-user form button[type="submit"],
body.path-user form button.btn-primary,
body.path-user form button.form-submit,
body.path-user form .form-submit.btn,
body.path-user form .btn-primary {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.005em;
  color: #ffffff;
  background: linear-gradient(135deg, #f77062, #fe5196, #bc4cf4);
  background-size: 200% 100%;
  background-position: 0% 50%;
  border: none;
  border-radius: 9999px;
  padding: 14px 28px;
  box-shadow: 0 4px 14px rgba(247, 112, 98, 0.28);
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1),
              background-position 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
  text-decoration: none;
}

body.path-user form button[type="submit"]:hover,
body.path-user form button.btn-primary:hover,
body.path-user form button.form-submit:hover {
  transform: translateY(-1px);
  background-position: 100% 50%;
  box-shadow: 0 8px 22px rgba(247, 112, 98, 0.36);
  color: #ffffff;
}
body.path-user form button[type="submit"]:active,
body.path-user form button.btn-primary:active,
body.path-user form button.form-submit:active {
  transform: translateY(0);
  box-shadow: 0 3px 10px rgba(247, 112, 98, 0.3);
}
body.path-user form button[type="submit"]:focus-visible,
body.path-user form button.btn-primary:focus-visible,
body.path-user form button.form-submit:focus-visible {
  box-shadow: 0 4px 14px rgba(247, 112, 98, 0.28),
              0 0 0 4px rgba(26, 115, 232, 0.25);
}

body.path-user form button[hidden] {
  display: none !important;
}

/* Trailing arrow icon (injected by JS) */
body.path-user form button[type="submit"] .guu-btn-arrow {
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 12px;
}
body.path-user form button[type="submit"]:hover .guu-btn-arrow {
  transform: translateX(3px);
}


/* -------------------------------------------------------------
   9. PASSWORD VISIBILITY TOGGLE (login page)
   ------------------------------------------------------------- */

.guu-pass-wrap {
  position: relative;
}
.guu-pass-wrap input {
  padding-right: 44px !important;
}
.guu-pass-toggle {
  position: absolute;
  top: 50%;
  right: 4px;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 8px 12px;
  font-size: 14px;
  line-height: 1;
  border-radius: 6px;
  transition: color 0.2s cubic-bezier(0.4, 0, 0.2, 1),
              background 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.guu-pass-toggle:hover {
  color: #1a73e8;
  background: rgba(26, 115, 232, 0.06);
}
.guu-pass-toggle:focus-visible {
  outline: none;
  color: #1a73e8;
  box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.3);
}


/* -------------------------------------------------------------
   10. FORGOT PASSWORD INLINE LINK (login only)
   ------------------------------------------------------------- */

.guu-forgot {
  margin: -10px 0 18px;
  text-align: right;
}
.guu-forgot a {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #1a73e8;
  text-decoration: none;
  transition: color 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}
.guu-forgot a:hover {
  color: #0c5ec7;
  text-decoration: underline;
}


/* -------------------------------------------------------------
   11. CROSS-LINK META & TRUST STRIP (auth pages only)
   ------------------------------------------------------------- */

.guu-auth-meta {
  margin-top: 24px;
  text-align: center;
  font-family: 'DM Sans', sans-serif;
  font-size: 13.5px;
  color: #64748b;
}
.guu-auth-meta a {
  color: #1a73e8;
  font-weight: 600;
  text-decoration: none;
  margin-left: 4px;
  transition: color 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}
.guu-auth-meta a:hover {
  color: #0c5ec7;
  text-decoration: underline;
}

.guu-auth-trust {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 11.5px;
  color: #94a3b8;
}
.guu-auth-trust span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.guu-auth-trust i {
  color: #0d9488;
  font-size: 11px;
}


/* -------------------------------------------------------------
   12. DRUPAL MESSAGES (errors, status, warnings)
   ------------------------------------------------------------- */

body.path-user [data-drupal-messages] {
  margin-bottom: 20px;
}
body.path-user .messages,
body.path-user .messages-list__item {
  font-family: 'DM Sans', sans-serif;
  font-size: 13.5px;
  line-height: 1.5;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid transparent;
  margin-bottom: 12px;
}
body.path-user .messages--status {
  background: rgba(13, 148, 136, 0.06);
  border-color: rgba(13, 148, 136, 0.2);
  color: #0d9488;
}
body.path-user .messages--error {
  background: rgba(217, 48, 37, 0.06);
  border-color: rgba(217, 48, 37, 0.2);
  color: #d93025;
}
body.path-user .messages--warning {
  background: rgba(245, 158, 11, 0.06);
  border-color: rgba(245, 158, 11, 0.2);
  color: #b45309;
}


/* -------------------------------------------------------------
   13. EDIT PAGE — hide internal data block + empty view wrappers
   ------------------------------------------------------------- */

/* Hidden user data span block (consumed by other JS) */
body.path-user #guau-userdata {
  display: none !important;
}

/* The current-user-info view renders only the hidden userdata block,
   so its outer wrapper has no visual content. Suppress it. */
body.path-user .view-user-profiles,
body.path-user .view-current-user-info {
  display: none;
}


/* -------------------------------------------------------------
   14. ENTRANCE ANIMATIONS — respect reduced-motion
   ------------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  .guu-auth-card-inner {
    animation: guu-rise 0.55s cubic-bezier(0.4, 0, 0.2, 1) 0.05s both;
  }
  .guu-auth-showcase-inner > * {
    animation: guu-rise 0.6s cubic-bezier(0.4, 0, 0.2, 1) both;
  }
  .guu-auth-showcase-inner > *:nth-child(1) { animation-delay: 0.05s; }
  .guu-auth-showcase-inner > *:nth-child(2) { animation-delay: 0.18s; }
  .guu-auth-showcase-inner > *:nth-child(3) { animation-delay: 0.28s; }
  .guu-auth-showcase-inner > *:nth-child(4) { animation-delay: 0.38s; }
  .guu-auth-showcase-inner > *:nth-child(5) { animation-delay: 0.46s; }

  @keyframes guu-rise {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
  }
}