/**
 * Link Tree Theme — Premium Split-Screen Authentication Stylesheet
 * Strict Brand Fidelity: #003B8F (Blue), #062B5B (Navy), #F4510B (Orange)
 */

.auth-split-wrapper {
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  background: #FFFFFF;
}

/* -------------------------------------------------------------
   Left Panel: Form Panel
   ------------------------------------------------------------- */
.auth-form-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 60px 40px;
  background: #FFFFFF;
}

.auth-form-container {
  width: min(480px, 100%);
}

.auth-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue);
  font: 700 12px "Sora", sans-serif;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.auth-form-container h1 {
  font: 700 32px/1.2 "Sora", sans-serif;
  color: var(--navy);
  margin: 0 0 10px 0;
  letter-spacing: -1px;
}

.auth-form-container p.auth-subtitle {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 28px 0;
}

/* Alert Notices */
.auth-alert {
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 24px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.auth-alert.error {
  background: #FEF2F2;
  border: 1px solid #FCA5A5;
  color: #991B1B;
}

.auth-alert.success {
  background: #ECFDF5;
  border: 1px solid #6EE7B7;
  color: #065F46;
}

/* Form Groups & Inputs */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
}

.input-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon-wrap input {
  width: 100%;
  height: 48px;
  padding: 0 44px 0 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: #FFFFFF;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.input-icon-wrap input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 59, 143, 0.12);
}

.input-icon-wrap .field-icon-btn {
  position: absolute;
  right: 12px;
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 4px;
  display: grid;
  place-items: center;
  border-radius: 6px;
}

.input-icon-wrap .field-icon-btn:hover {
  color: var(--navy);
}

/* Password Strength Indicator */
.password-strength-wrap {
  margin-top: 6px;
}

.strength-bars {
  display: flex;
  gap: 4px;
  height: 4px;
  margin-bottom: 4px;
}

.strength-bar {
  flex: 1;
  border-radius: 2px;
  background: #E2E8F0;
  transition: background .2s ease;
}

.strength-label {
  font-size: 11px;
  color: var(--muted);
}

/* Form Row (Remember Me & Forgot Link) */
.form-options-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
}

.form-options-row label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  cursor: pointer;
}

.form-options-row a {
  color: var(--blue);
  font-weight: 600;
  text-decoration: none;
}

.form-options-row a:hover {
  text-decoration: underline;
}

/* Submit Button & Spinner */
.btn-auth-submit {
  width: 100%;
  min-height: 50px;
  background: var(--color-primary, #19A46F);
  color: #FFFFFF;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 8px 20px rgba(25, 164, 111, 0.28);
  transition: transform .18s ease, box-shadow .18s ease;
}

.btn-auth-submit:hover {
  transform: translateY(-2px);
  background: var(--color-primary-hover, #14865C);
  box-shadow: 0 12px 28px rgba(25, 164, 111, 0.38);
}

.btn-auth-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.auth-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #FFFFFF;
  border-radius: 50%;
  animation: authSpin 0.7s linear infinite;
  display: none;
}

@keyframes authSpin {
  to {
    transform: rotate(360deg);
  }
}

.auth-footer-prompt {
  text-align: center;
  margin-top: 28px;
  font-size: 14px;
  color: var(--muted);
}

.auth-footer-prompt a {
  color: var(--blue);
  font-weight: 700;
  margin-left: 4px;
}

/* -------------------------------------------------------------
   Right Panel: Premium Product Showcase
   ------------------------------------------------------------- */
.auth-showcase-panel {
  background: linear-gradient(135deg, #114B5F 0%, #0B2B36 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 40px;
  position: relative;
  overflow: hidden;
  color: #FFFFFF;
}

.auth-showcase-panel::before {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(23, 105, 224, 0.25) 0%, transparent 70%);
  top: 10%;
  right: -100px;
}

.auth-showcase-panel::after {
  content: "";
  position: absolute;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 81, 11, 0.15) 0%, transparent 70%);
  bottom: 5%;
  left: -80px;
}

.showcase-content-wrap {
  position: relative;
  z-index: 2;
  max-width: 460px;
  text-align: center;
}

.showcase-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}

.showcase-content-wrap h2 {
  font: 700 28px/1.3 "Sora", sans-serif;
  color: #FFFFFF;
  margin: 0 0 10px 0;
  letter-spacing: -0.5px;
}

.showcase-content-wrap p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 36px 0;
}

/* Realistic Smartphone Mockup in Showcase */
.showcase-phone-mockup {
  width: 290px;
  margin: 0 auto;
  padding: 10px;
  background: #082541;
  border-radius: 36px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
  position: relative;
  border: 4px solid #1A3E66;
}

.mockup-inner-screen {
  background: #FFFFFF;
  border-radius: 26px;
  padding: 24px 18px;
  color: var(--text);
  text-align: center;
  overflow: hidden;
}

.mockup-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--blue);
  color: #FFFFFF;
  font: 700 24px "Sora", sans-serif;
  display: grid;
  place-items: center;
  margin: 0 auto 10px;
  border: 3px solid #FFFFFF;
  box-shadow: 0 6px 16px rgba(0, 59, 143, 0.2);
}

.mockup-inner-screen h4 {
  margin: 0 0 4px;
  color: var(--navy);
  font: 700 17px "Sora", sans-serif;
}

.mockup-inner-screen span.title-tag {
  font-size: 11px;
  color: var(--muted);
  display: block;
  margin-bottom: 14px;
}

.mockup-actions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 16px;
}

.mockup-act-bubble {
  padding: 8px 4px;
  background: var(--soft-blue);
  border-radius: 8px;
  color: var(--blue);
  font-size: 9px;
  font-weight: 700;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.mockup-link-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.mockup-link-item.highlight {
  background: var(--blue);
  color: #FFFFFF;
  border-color: var(--blue);
}

/* Floating Feature Badges */
.floating-badge {
  position: absolute;
  padding: 10px 14px;
  border-radius: 12px;
  background: #FFFFFF;
  color: var(--navy);
  font-size: 11px;
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 5;
  white-space: nowrap;
}

.floating-badge.top-left {
  top: 12%;
  left: -20px;
}

.floating-badge.bottom-right {
  bottom: 8%;
  right: -20px;
}

/* -------------------------------------------------------------
   Registration Showcase: Multi-Step Card Studio
   ------------------------------------------------------------- */
.showcase-studio-card {
  width: 320px;
  margin: 0 auto;
  background: #FFFFFF;
  border-radius: 20px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
  padding: 22px 20px;
  color: var(--text);
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.studio-step-indicators {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 16px;
}

.studio-step-pill {
  padding: 4px 6px;
  border-radius: 6px;
  background: #F1F5F9;
  font-size: 9px;
  font-weight: 700;
  color: #64748B;
  text-align: center;
}

.studio-step-pill.completed {
  background: #E8F5ED;
  color: #19A46F;
}

.studio-step-pill.active {
  background: #19A46F;
  color: #FFFFFF;
}

.studio-template-preview-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #F8FAF8;
  padding: 8px 10px;
  border-radius: 10px;
  margin-bottom: 14px;
  border: 1px solid var(--border);
}

.template-chip {
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.template-chip.active {
  background: #19A46F;
  color: #FFFFFF;
}

.template-chip.inactive {
  background: #E8EFEB;
  color: #64748B;
}

.studio-profile-section {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.studio-avatar {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #114B5F, #0B2B36);
  color: #FFFFFF;
  display: grid;
  place-items: center;
  font: 700 16px "Sora", sans-serif;
  flex: none;
}

.studio-profile-meta h4 {
  margin: 0;
  font: 700 15px "Sora", sans-serif;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 6px;
}

.studio-profile-meta p {
  margin: 2px 0 0;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.3;
}

.studio-links-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.studio-link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: #F8FAFC;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--navy);
}

.studio-link-row.featured {
  background: #E8F5ED;
  border-color: #88D398;
  color: #19A46F;
}

.studio-publish-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  font-size: 10px;
}

.studio-publish-url {
  color: var(--muted);
  font-family: monospace;
}

.studio-live-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #059669;
  font-weight: 700;
  background: #ECFDF5;
  padding: 2px 6px;
  border-radius: 4px;
}

/* Security Showcase Mockup */
.showcase-security-card {
  width: 310px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 24px 20px;
  text-align: center;
}

.security-icon-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  color: #FFFFFF;
}

/* -------------------------------------------------------------
   Responsive Breakpoints
   ------------------------------------------------------------- */
@media (max-width: 1024px) {
  .auth-split-wrapper {
    grid-template-columns: 1fr;
  }

  .auth-showcase-panel {
    display: none;
  }

  .auth-form-panel {
    padding: 40px 20px;
  }
}

@media (max-width: 480px) {
  .auth-form-container h1 {
    font-size: 26px;
  }

  .auth-form-panel {
    padding: 30px 16px;
  }

  .form-options-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

/* ==========================================================================
   Scoped Non-Editable Text Selection Protection for Bloom AI Auth Pages
   Prevents unwanted full-page blue text selection / highlighting on branding,
   headings, testimonials, labels, buttons, and error banners while strictly
   preserving full native text selection inside form inputs and textareas.
   ========================================================================== */

.auth-page-wrapper,
.auth-two-col-layout,
.auth-brand-col,
.auth-brand-logo-link,
.auth-eyebrow,
.auth-headline,
.auth-subtext,
.auth-preview-card,
.auth-preview-card *,
.auth-floating-chip,
.auth-floating-chip *,
.auth-card-col,
.auth-card,
.auth-card-header,
.auth-card-title,
.auth-card-desc,
.auth-label,
.auth-field-label-row,
.auth-field-label-row span,
.auth-password-toggle,
.auth-strength-meter,
.auth-strength-meter *,
.auth-strength-bars,
.auth-strength-bar,
.auth-strength-label,
.auth-strength-label span,
.auth-error-banner,
.auth-error-banner span,
.auth-checkbox-row,
.auth-checkbox-row label,
.auth-submit-btn,
.auth-submit-btn *,
.auth-card-footer,
.auth-card-footer span,
.auth-split-wrapper,
.auth-form-panel,
.auth-form-container,
.auth-brand-badge,
.auth-alert,
.form-group label {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Explicitly guarantee native text selection, cursor, and clipboard inside all form inputs */
.auth-page-wrapper input,
.auth-page-wrapper textarea,
.auth-split-wrapper input,
.auth-split-wrapper textarea,
.auth-input,
.form-group input,
.form-group textarea {
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  -ms-user-select: text !important;
  user-select: text !important;
}

/* Allow normal text selection on legal policy links and anchor tags */
.auth-checkbox-row a,
.auth-card-footer a,
.auth-link-subtle,
.auth-split-wrapper a {
  -webkit-user-select: auto;
  -moz-user-select: auto;
  user-select: auto;
}

/* Scoped selection styling: Clean brand green inside inputs, transparent on non-editable UI */
.auth-page-wrapper :not(input):not(textarea)::selection,
.auth-split-wrapper :not(input):not(textarea)::selection {
  background: transparent;
  color: inherit;
}
.auth-page-wrapper :not(input):not(textarea)::-moz-selection,
.auth-split-wrapper :not(input):not(textarea)::-moz-selection {
  background: transparent;
  color: inherit;
}
.auth-page-wrapper input::selection,
.auth-page-wrapper textarea::selection,
.auth-split-wrapper input::selection,
.auth-split-wrapper textarea::selection {
  background: rgba(36, 123, 98, 0.25) !important;
  color: inherit !important;
}
.auth-page-wrapper input::-moz-selection,
.auth-page-wrapper textarea::-moz-selection,
.auth-split-wrapper input::-moz-selection,
.auth-split-wrapper textarea::-moz-selection {
  background: rgba(36, 123, 98, 0.25) !important;
  color: inherit !important;
}
