/* ==========================================================================
   IEOS Auth · Registration · Public Forms — modern sleek system (1.9.57)
   ========================================================================== */

:root {
  --ieos-f-primary: #DC2626;
  --ieos-f-primary-hover: #B91C1C;
  --ieos-f-primary-soft: #FEE2E2;
  --ieos-f-ink: #0F172A;
  --ieos-f-slate: #475569;
  --ieos-f-muted: #64748B;
  --ieos-f-border: #E2E8F0;
  --ieos-f-surface: #FFFFFF;
  --ieos-f-bg: #F8FAFC;
  --ieos-f-success: #0F766E;
  --ieos-f-success-soft: #ECFDF5;
  --ieos-f-radius: 16px;
  --ieos-f-radius-sm: 12px;
  --ieos-f-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
  --ieos-f-shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.1);
  --ieos-f-font: 'Hanken Grotesk', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Shell */
.ieos-onboarding-wrapper,
.ieos-auth-card,
.ieos-form-shell {
  max-width: 560px;
  margin: 40px auto;
  padding: 36px 36px 32px;
  background: var(--ieos-f-surface);
  border: 1px solid var(--ieos-f-border);
  border-radius: 22px;
  box-shadow: var(--ieos-f-shadow-lg);
  font-family: var(--ieos-f-font);
  color: var(--ieos-f-ink);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.ieos-onboarding-wrapper::before,
.ieos-auth-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, #DC2626, #F97316 50%, #DC2626);
}

.ieos-onboarding-wrapper.ieos-auth-narrow,
.ieos-auth-card {
  max-width: 440px;
}

.ieos-onboarding-wrapper *,
.ieos-auth-card *,
.ieos-form-shell * {
  box-sizing: border-box;
}

/* Headers */
.ieos-auth-header,
.ieos-form-header {
  text-align: center;
  margin-bottom: 28px;
}

.ieos-auth-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--ieos-f-primary-soft);
  color: #991B1B;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.ieos-onboarding-wrapper h2,
.ieos-auth-card h2,
.ieos-form-header h2,
.ieos-step h2 {
  margin: 0 0 8px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ieos-f-ink);
  line-height: 1.2;
  border: none;
  padding: 0;
  text-align: center;
}

.ieos-auth-sub,
.ieos-form-sub {
  margin: 0;
  font-size: 14px;
  color: var(--ieos-f-muted);
  line-height: 1.5;
  text-align: center;
}

/* Progress */
.ieos-progress-bar {
  width: 100%;
  height: 8px;
  background: #F1F5F9;
  border-radius: 999px;
  margin: 0 0 28px;
  overflow: hidden;
}

.ieos-progress {
  height: 100%;
  background: linear-gradient(90deg, #DC2626, #F97316);
  border-radius: 999px;
  transition: width 0.35s ease;
}

/* Steps */
.ieos-step {
  display: none;
  animation: ieosFadeUp 0.35s ease;
}

.ieos-step.ieos-step-active {
  display: block;
}

@keyframes ieosFadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.ieos-step h2 {
  text-align: left;
  font-size: 22px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ieos-f-border);
}

/* Form groups */
.ieos-form-group {
  margin-bottom: 18px;
}

.ieos-form-group label {
  display: block;
  margin-bottom: 7px;
  font-weight: 600;
  font-size: 13px;
  color: var(--ieos-f-slate);
  letter-spacing: 0.01em;
}

.ieos-form-group label .req,
.ieos-form-group label span[style*="color:red"],
.ieos-form-group label span[style*="color: red"] {
  color: var(--ieos-f-primary) !important;
  font-weight: 700;
}

.ieos-form-group input[type="text"],
.ieos-form-group input[type="email"],
.ieos-form-group input[type="tel"],
.ieos-form-group input[type="password"],
.ieos-form-group input[type="number"],
.ieos-form-group input[type="url"],
.ieos-form-group input[type="date"],
.ieos-form-group select,
.ieos-form-group textarea,
.ieos-onboarding-wrapper input[type="text"],
.ieos-onboarding-wrapper input[type="email"],
.ieos-onboarding-wrapper input[type="tel"],
.ieos-onboarding-wrapper input[type="password"],
.ieos-onboarding-wrapper input[type="number"],
.ieos-onboarding-wrapper select,
.ieos-onboarding-wrapper textarea,
.ieos-auth-card input[type="text"],
.ieos-auth-card input[type="email"],
.ieos-auth-card input[type="password"],
.ieos-select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--ieos-f-border);
  border-radius: var(--ieos-f-radius-sm);
  background: #fff;
  font-size: 15px;
  font-family: inherit;
  color: var(--ieos-f-ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
}

.ieos-form-group textarea,
.ieos-onboarding-wrapper textarea {
  min-height: 110px;
  resize: vertical;
  line-height: 1.5;
}

.ieos-form-group input:hover,
.ieos-form-group select:hover,
.ieos-form-group textarea:hover,
.ieos-onboarding-wrapper input:hover,
.ieos-onboarding-wrapper select:hover,
.ieos-auth-card input:hover {
  border-color: #CBD5E1;
}

.ieos-form-group input:focus,
.ieos-form-group select:focus,
.ieos-form-group textarea:focus,
.ieos-onboarding-wrapper input:focus,
.ieos-onboarding-wrapper select:focus,
.ieos-onboarding-wrapper textarea:focus,
.ieos-auth-card input:focus,
.ieos-select:focus {
  outline: none;
  border-color: #3B82F6;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15), 0 4px 12px rgba(15, 23, 42, 0.05);
  background: #fff;
  transform: translateY(-1px);
}

.ieos-form-group input::placeholder,
.ieos-onboarding-wrapper input::placeholder,
.ieos-auth-card input::placeholder {
  color: #94A3B8;
}

/* Select chevron */
.ieos-form-group select,
.ieos-onboarding-wrapper select,
.ieos-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2364748B' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

/* Checkboxes / radios */
.ieos-checkbox-group,
.ieos-radio-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ieos-checkbox-group label,
.ieos-radio-group label,
.ieos-onboarding-wrapper .ieos-checkbox-group label {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  font-weight: 500 !important;
  font-size: 14px !important;
  color: var(--ieos-f-ink) !important;
  margin: 0 !important;
  padding: 12px 14px;
  border: 1px solid var(--ieos-f-border);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  background: #fff;
}

.ieos-checkbox-group label:hover,
.ieos-radio-group label:hover {
  border-color: #FECACA;
  background: #FFF7F7;
}

.ieos-checkbox-group input[type="checkbox"],
.ieos-checkbox-group input[type="radio"],
.ieos-radio-group input[type="checkbox"],
.ieos-radio-group input[type="radio"],
.ieos-onboarding-wrapper input[type="checkbox"],
.ieos-onboarding-wrapper input[type="radio"] {
  width: 18px;
  height: 18px;
  margin: 2px 0 0 !important;
  accent-color: var(--ieos-f-primary);
  flex-shrink: 0;
}

/* Role cards row */
.ieos-role-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (max-width: 520px) {
  .ieos-role-grid { grid-template-columns: 1fr; }
}

/* Buttons */
.ieos-onboarding-wrapper .ieos-btn-primary,
.ieos-auth-card .ieos-btn-primary,
.ieos-form-shell .ieos-btn-primary,
#ieos-login-submit-btn,
#ieos-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 18px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  font-family: inherit !important;
  color: #fff !important;
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%) !important;
  border: none !important;
  border-radius: 12px !important;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25) !important;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease !important;
  text-decoration: none !important;
}

.ieos-onboarding-wrapper .ieos-btn-primary:hover,
.ieos-auth-card .ieos-btn-primary:hover,
#ieos-login-submit-btn:hover,
#ieos-submit-btn:hover {
  background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%) !important;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(29, 78, 216, 0.35) !important;
  filter: brightness(1.05);
}

.ieos-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ieos-f-ink);
  background: #fff;
  border: 1px solid var(--ieos-f-border);
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
}

.ieos-btn-secondary:hover {
  background: var(--ieos-f-bg);
}

.ieos-form-actions {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.ieos-form-actions .ieos-btn-primary,
.ieos-form-actions .ieos-btn-secondary {
  flex: 1;
}

/* Footer links */
.ieos-auth-footer {
  text-align: center;
  margin-top: 22px;
  font-size: 14px;
  color: var(--ieos-f-muted);
}

.ieos-auth-footer a {
  color: var(--ieos-f-primary) !important;
  font-weight: 700;
  text-decoration: none;
}

.ieos-auth-footer a:hover {
  text-decoration: underline;
}

/* Messages */
#ieos-form-message,
#ieos-login-message {
  margin: 0 0 14px;
  min-height: 0;
}

.ieos-success,
.ieos-onboarding-wrapper .ieos-success {
  color: #065F46 !important;
  background: var(--ieos-f-success-soft);
  border: 1px solid #A7F3D0;
  border-radius: 12px;
  padding: 12px 14px;
  font-weight: 600;
  font-size: 14px;
}

.ieos-error:not(input):not(select):not(textarea),
.ieos-onboarding-wrapper .ieos-error:not(input) {
  color: #991B1B !important;
  background: #FEF2F2;
  border: 1px solid #FECACA;
  border-radius: 12px;
  padding: 12px 14px;
  font-weight: 600;
  font-size: 14px;
}

input.ieos-error,
select.ieos-error,
textarea.ieos-error,
.ieos-form-group input.ieos-error {
  border-color: #F87171 !important;
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.15) !important;
}

/* Already logged-in state */
.ieos-auth-logged-in {
  text-align: center;
  padding: 12px 0 4px;
}

.ieos-auth-logged-in h3 {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 800;
  color: var(--ieos-f-ink);
}

.ieos-auth-logged-in .ieos-btn-primary {
  width: auto;
  display: inline-flex;
  padding: 12px 22px !important;
}

/* Field rows */
.ieos-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 520px) {
  .ieos-form-row { grid-template-columns: 1fr; }
}

/* Hint text */
.ieos-field-hint {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--ieos-f-muted);
  line-height: 1.4;
}

/* Dashboard submit form harmony when onboarding CSS also present */
.ieos-dashboard-wrapper .ieos-form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ieos-f-slate);
}

/* Mobile */
@media (max-width: 560px) {
  .ieos-onboarding-wrapper,
  .ieos-auth-card,
  .ieos-form-shell {
    margin: 16px 12px;
    padding: 24px 20px 22px;
    border-radius: 18px;
  }
  .ieos-onboarding-wrapper h2,
  .ieos-auth-card h2 {
    font-size: 22px;
  }
}

/* ==========================================================================
   ARTISTIC LAYER 1.9.58 — ambient mesh, glass, refined hierarchy
   ========================================================================== */

body.page .ieos-onboarding-wrapper,
body.page-template .ieos-onboarding-wrapper,
.ieos-onboarding-wrapper {
  max-width: 580px;
  margin: 48px auto;
  padding: 40px 40px 36px;
  border-radius: 28px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background:
    linear-gradient(165deg, rgba(255,255,255,0.97) 0%, rgba(248,250,252,0.95) 100%);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.8) inset,
    0 24px 64px rgba(15, 23, 42, 0.1),
    0 8px 24px rgba(220, 38, 38, 0.06);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.ieos-onboarding-wrapper::before {
  height: 5px;
  background: linear-gradient(90deg, #7F1D1D 0%, #DC2626 35%, #F97316 70%, #FBBF24 100%);
  opacity: 1;
}

.ieos-onboarding-wrapper::after {
  content: '';
  position: absolute;
  width: 180px;
  height: 180px;
  right: -40px;
  top: -40px;
  background: radial-gradient(circle, rgba(254, 202, 202, 0.45) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.ieos-onboarding-wrapper > * {
  position: relative;
  z-index: 1;
}

.ieos-auth-badge {
  background: linear-gradient(135deg, #FEF2F2, #FFF7ED);
  border: 1px solid #FECACA;
  color: #9F1239;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.08);
  letter-spacing: 0.08em;
}

.ieos-onboarding-wrapper h2,
.ieos-auth-card h2 {
  font-size: clamp(24px, 4vw, 30px);
  background: linear-gradient(135deg, #0F172A 20%, #7F1D1D 120%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.ieos-auth-sub {
  font-size: 15px;
  color: #64748B;
  max-width: 36em;
  margin-left: auto;
  margin-right: auto;
}

.ieos-progress-bar {
  height: 10px;
  background: linear-gradient(90deg, #F1F5F9, #E2E8F0);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.06);
}

.ieos-progress {
  background: linear-gradient(90deg, #DC2626, #F97316, #FBBF24);
  box-shadow: 0 0 12px rgba(249, 115, 22, 0.35);
}

.ieos-form-group label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748B;
  font-weight: 700;
}

.ieos-form-group input[type="text"],
.ieos-form-group input[type="email"],
.ieos-form-group input[type="tel"],
.ieos-form-group input[type="password"],
.ieos-form-group input[type="number"],
.ieos-form-group input[type="url"],
.ieos-form-group select,
.ieos-form-group textarea,
.ieos-onboarding-wrapper input[type="text"],
.ieos-onboarding-wrapper input[type="email"],
.ieos-onboarding-wrapper input[type="tel"],
.ieos-onboarding-wrapper input[type="password"],
.ieos-onboarding-wrapper select,
.ieos-onboarding-wrapper textarea,
.ieos-auth-card input {
  padding: 14px 16px;
  border-radius: 14px;
  border: 1.5px solid #E2E8F0;
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
  font-size: 15px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.ieos-form-group input:focus,
.ieos-form-group select:focus,
.ieos-form-group textarea:focus,
.ieos-onboarding-wrapper input:focus,
.ieos-onboarding-wrapper select:focus,
.ieos-auth-card input:focus {
  border-color: #F87171;
  box-shadow:
    0 0 0 4px rgba(220, 38, 38, 0.12),
    0 8px 20px rgba(220, 38, 38, 0.08);
  background: #fff;
  transform: translateY(-1px);
}

.ieos-checkbox-group label,
.ieos-radio-group label {
  border-radius: 14px;
  padding: 14px 16px;
  background: linear-gradient(180deg, #fff, #F8FAFC);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.ieos-checkbox-group label:hover,
.ieos-radio-group label:hover {
  border-color: #FCA5A5;
  background: linear-gradient(180deg, #FFF7F7, #FEF2F2);
  box-shadow: 0 6px 16px rgba(220, 38, 38, 0.08);
  transform: translateY(-1px);
}

.ieos-onboarding-wrapper .ieos-btn-primary,
.ieos-auth-card .ieos-btn-primary,
#ieos-login-submit-btn,
#ieos-submit-btn {
  padding: 15px 20px !important;
  border-radius: 14px !important;
  font-size: 15px !important;
  letter-spacing: 0.01em;
  background: linear-gradient(135deg, #1E3A8A 0%, #1D4ED8 100%) !important;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.2) inset,
    0 12px 28px rgba(29, 78, 216, 0.32) !important;
  position: relative;
  overflow: hidden;
}

.ieos-onboarding-wrapper .ieos-btn-primary::after,
#ieos-login-submit-btn::after,
#ieos-submit-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.18) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.5s ease;
}

.ieos-onboarding-wrapper .ieos-btn-primary:hover::after,
#ieos-login-submit-btn:hover::after,
#ieos-submit-btn:hover::after {
  transform: translateX(120%);
}

.ieos-auth-footer a {
  background: linear-gradient(90deg, #DC2626, #F97316);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

@media (max-width: 560px) {
  .ieos-onboarding-wrapper {
    margin: 20px 14px;
    padding: 28px 20px 24px;
    border-radius: 22px;
  }
}

/* ==========================================================================
   SLEEK CONTRAST 1.9.59 — auth cards always light surface + dark type
   ========================================================================== */
.ieos-onboarding-wrapper,
.ieos-auth-card,
.ieos-form-shell {
  background: #FFFFFF !important;
  color: #0F172A !important;
}
.ieos-onboarding-wrapper h2,
.ieos-auth-card h2,
.ieos-form-header h2 {
  background: none !important;
  -webkit-text-fill-color: #0F172A !important;
  color: #0F172A !important;
}
.ieos-auth-sub {
  color: #64748B !important;
  -webkit-text-fill-color: #64748B !important;
}
.ieos-auth-badge {
  color: #9F1239 !important;
  -webkit-text-fill-color: #9F1239 !important;
}
.ieos-form-group label {
  color: #475569 !important;
}
.ieos-form-group input,
.ieos-form-group select,
.ieos-form-group textarea,
.ieos-onboarding-wrapper input,
.ieos-auth-card input {
  color: #0F172A !important;
  background: #FFFFFF !important;
}
.ieos-auth-footer {
  color: #64748B !important;
}
.ieos-auth-footer a {
  background: none !important;
  -webkit-text-fill-color: #DC2626 !important;
  color: #DC2626 !important;
}
.ieos-checkbox-group label,
.ieos-radio-group label {
  color: #0F172A !important;
}
.ieos-onboarding-wrapper .ieos-btn-primary,
#ieos-login-submit-btn,
#ieos-submit-btn {
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF !important;
}

/* ==========================================================================
   AUTH DESIGN 1.9.60 — split layout, password, errors, motion
   ========================================================================== */

.ieos-auth-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0;
  max-width: 920px;
  margin: 48px auto;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.12);
  border: 1px solid #E2E8F0;
  background: #fff;
}
@media (max-width: 800px) {
  .ieos-auth-split {
    grid-template-columns: 1fr;
    margin: 16px 12px;
    border-radius: 20px;
  }
  .ieos-auth-brand-panel { display: none; }
}

.ieos-auth-brand-panel {
  background:
    radial-gradient(ellipse 80% 60% at 20% 20%, rgba(252, 165, 165, 0.35), transparent 55%),
    linear-gradient(160deg, #0B1220 0%, #1E293B 45%, #7F1D1D 100%);
  color: #F8FAFC;
  padding: 40px 36px;
  display: flex;
  align-items: center;
}
.ieos-auth-brand-inner { width: 100%; }
.ieos-auth-brand-panel .ieos-auth-badge {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: #FECACA;
}
.ieos-auth-brand-title {
  margin: 14px 0 10px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #FFFFFF !important;
  background: none !important;
  -webkit-text-fill-color: #FFFFFF !important;
}
.ieos-auth-brand-copy {
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.55;
  color: #CBD5E1;
  max-width: 32ch;
}
.ieos-auth-brand-points {
  margin: 0;
  padding: 0;
  list-style: none;
}
.ieos-auth-brand-points li {
  position: relative;
  padding: 8px 0 8px 22px;
  font-size: 13px;
  color: #E2E8F0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.ieos-auth-brand-points li:last-child { border-bottom: 0; }
.ieos-auth-brand-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #FCA5A5;
  box-shadow: 0 0 0 3px rgba(252, 165, 165, 0.25);
}

.ieos-auth-split .ieos-onboarding-wrapper,
.ieos-auth-split .ieos-auth-card {
  margin: 0 !important;
  max-width: none !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 40px 36px !important;
}
.ieos-auth-split .ieos-onboarding-wrapper::before,
.ieos-auth-split .ieos-auth-card::before {
  display: none;
}
.ieos-auth-split .ieos-onboarding-wrapper::after {
  display: none;
}

/* Standalone auth card (logged-in, register) still full card */
.ieos-onboarding-wrapper.ieos-auth-card:not(.ieos-auth-panel) {
  /* keep previous card styles */
}

/* Password toggle */
.ieos-password-wrap {
  position: relative;
  display: block;
}
.ieos-password-wrap input {
  width: 100%;
  padding-right: 68px !important;
}
.ieos-password-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: #F1F5F9;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
  font-family: inherit;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  line-height: 1;
}
.ieos-password-toggle:hover {
  background: #E2E8F0;
  color: #0F172A;
}

/* Unified focus */
.ieos-onboarding-wrapper input:focus,
.ieos-onboarding-wrapper select:focus,
.ieos-onboarding-wrapper textarea:focus,
.ieos-auth-card input:focus {
  outline: none !important;
  border-color: #F87171 !important;
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.12) !important;
}

/* Error field */
.ieos-form-group input.ieos-error,
.ieos-form-group select.ieos-error,
input.ieos-error {
  border-color: #F87171 !important;
  background: #FEF2F2 !important;
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.12) !important;
}

/* Messages clean */
.ieos-success {
  background: #ECFDF5 !important;
  color: #065F46 !important;
  border: 1px solid #A7F3D0 !important;
  border-radius: 12px !important;
  padding: 12px 14px !important;
  font-weight: 600 !important;
  text-align: left !important;
}
.ieos-error:not(input):not(select) {
  background: #FEF2F2 !important;
  color: #991B1B !important;
  border: 1px solid #FECACA !important;
  border-radius: 12px !important;
  padding: 12px 14px !important;
  font-weight: 600 !important;
  text-align: left !important;
}

/* Motion */
.ieos-auth-split,
.ieos-onboarding-wrapper {
  animation: ieosAuthIn 0.22s ease both;
}
@keyframes ieosAuthIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.ieos-onboarding-wrapper .ieos-btn-primary:active,
#ieos-login-submit-btn:active,
#ieos-submit-btn:active {
  transform: translateY(1px) !important;
}

/* Mobile auth — keep readable, do not force full-viewport break of theme layout */
@media (max-width: 560px) {
  .ieos-onboarding-wrapper {
    margin: 12px !important;
    border-radius: 18px !important;
    min-height: 0;
  }
  .ieos-auth-split {
    margin: 12px auto 24px !important;
    border-radius: 18px !important;
    min-height: 0;
    width: calc(100% - 24px) !important;
  }
}

/* ==========================================================================
   LOGIN FIX 1.9.61 — brand-panel contrast + page alignment
   ========================================================================== */

/* Center the login module in the theme content area */
.ieos-auth-split {
  max-width: 900px !important;
  width: 100% !important;
  margin: 24px auto 48px !important;
  box-sizing: border-box !important;
}

/* Dark panel: force light text (theme often overrides to dark gray) */
.ieos-auth-brand-panel,
.ieos-auth-brand-panel * {
  -webkit-font-smoothing: antialiased !important;
}
.ieos-auth-brand-panel {
  background:
    radial-gradient(ellipse 90% 70% at 15% 15%, rgba(252, 165, 165, 0.28), transparent 55%),
    linear-gradient(165deg, #0B1220 0%, #1E293B 42%, #7F1D1D 100%) !important;
  color: #F8FAFC !important;
  padding: 44px 40px !important;
}
.ieos-auth-brand-panel .ieos-auth-badge {
  background: rgba(255, 255, 255, 0.14) !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  color: #FECACA !important;
  -webkit-text-fill-color: #FECACA !important;
  font-weight: 700 !important;
}
.ieos-auth-brand-title,
.ieos-auth-brand-panel h2 {
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF !important;
  background: none !important;
  font-size: 30px !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
  margin: 16px 0 12px !important;
  letter-spacing: -0.03em !important;
}
.ieos-auth-brand-copy,
.ieos-auth-brand-panel p {
  color: #E2E8F0 !important;
  -webkit-text-fill-color: #E2E8F0 !important;
  opacity: 1 !important;
  font-size: 15px !important;
  line-height: 1.6 !important;
  margin: 0 0 22px !important;
  max-width: 34ch !important;
  font-weight: 400 !important;
}
.ieos-auth-brand-points {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}
.ieos-auth-brand-points li {
  color: #F1F5F9 !important;
  -webkit-text-fill-color: #F1F5F9 !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1.45 !important;
  padding: 11px 0 11px 24px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
  opacity: 1 !important;
}
.ieos-auth-brand-points li::before {
  background: #FCA5A5 !important;
  box-shadow: 0 0 0 3px rgba(252, 165, 165, 0.3) !important;
  top: 16px !important;
}

/* Right form panel alignment */
.ieos-auth-split .ieos-auth-panel {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  padding: 40px 42px !important;
  background: #FFFFFF !important;
  color: #0F172A !important;
}
.ieos-auth-split .ieos-auth-header {
  text-align: center !important;
  margin-bottom: 28px !important;
}
.ieos-auth-split .ieos-auth-header h2 {
  color: #0F172A !important;
  -webkit-text-fill-color: #0F172A !important;
  background: none !important;
  margin: 0 0 8px !important;
}
.ieos-auth-split .ieos-auth-sub {
  color: #64748B !important;
  -webkit-text-fill-color: #64748B !important;
}
.ieos-auth-split .ieos-form-group label {
  color: #475569 !important;
  text-align: left !important;
}
.ieos-auth-split .ieos-form-group input {
  color: #0F172A !important;
  background: #F8FAFC !important;
  border: 1px solid #E2E8F0 !important;
}
.ieos-auth-split .ieos-form-group input:focus {
  background: #FFFFFF !important;
  border-color: #F87171 !important;
}
.ieos-auth-split .ieos-btn-primary,
.ieos-auth-split #ieos-login-submit-btn {
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF !important;
}
.ieos-auth-split .ieos-auth-footer {
  color: #64748B !important;
}
.ieos-auth-split .ieos-auth-footer a {
  color: #DC2626 !important;
  -webkit-text-fill-color: #DC2626 !important;
  background: none !important;
}

/* Soften theme page chrome around the shortcode */
.entry-content:has(.ieos-auth-split),
.td-page-content:has(.ieos-auth-split),
.wpb_wrapper:has(.ieos-auth-split) {
  max-width: 100% !important;
}
/* Reduce clash with theme "Login" H1 when present */
body:has(.ieos-auth-split) .td-page-title,
body:has(.ieos-auth-split) .entry-title,
body:has(.ieos-auth-split) h1.entry-title {
  margin-bottom: 8px !important;
}

@media (max-width: 800px) {
  .ieos-auth-split {
    margin: 12px auto 32px !important;
  }
  .ieos-auth-split .ieos-auth-panel {
    padding: 28px 22px !important;
  }
}

/* ==========================================================================
   REGISTRATION 1.9.62 — creative split + type cards + role chips
   ========================================================================== */

.ieos-auth-split-register {
  max-width: 980px !important;
  align-items: stretch;
}

.ieos-auth-split-register .ieos-reg-panel {
  padding: 36px 40px !important;
  max-height: none;
  overflow: visible;
}

.ieos-reg-section {
  margin-bottom: 22px;
}

.ieos-reg-label {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748B;
}

.ieos-reg-label .req,
.ieos-form-group .req {
  color: #DC2626;
}

/* Account type cards */
.ieos-type-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 560px) {
  .ieos-type-cards { grid-template-columns: 1fr; }
}

.ieos-type-card {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  margin: 0 !important;
  padding: 14px 16px !important;
  border: 1.5px solid #E2E8F0 !important;
  border-radius: 14px !important;
  background: linear-gradient(180deg, #FFFFFF, #F8FAFC) !important;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
  font-weight: 500 !important;
  color: #0F172A !important;
}
.ieos-type-card:hover {
  border-color: #FCA5A5 !important;
  box-shadow: 0 8px 20px rgba(220, 38, 38, 0.08);
  transform: translateY(-1px);
}
.ieos-type-card.is-selected,
.ieos-type-card:has(input:checked) {
  border-color: #DC2626 !important;
  background: linear-gradient(180deg, #FEF2F2, #FFFFFF) !important;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}
.ieos-type-card input {
  margin-top: 3px !important;
  accent-color: #DC2626;
  flex-shrink: 0;
}
.ieos-type-card-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ieos-type-card-body strong {
  font-size: 14px;
  color: #0F172A;
}
.ieos-type-card-body span {
  font-size: 12px;
  color: #64748B;
  font-weight: 400;
  line-height: 1.35;
}

/* Role chips */
.ieos-role-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
@media (max-width: 560px) {
  .ieos-role-grid { grid-template-columns: 1fr; }
}
.ieos-role-chip {
  display: flex !important;
  align-items: center;
  gap: 8px;
  margin: 0 !important;
  padding: 10px 12px !important;
  border: 1px solid #E2E8F0 !important;
  border-radius: 12px !important;
  background: #fff !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #0F172A !important;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.ieos-role-chip:hover {
  border-color: #FCA5A5 !important;
  background: #FFF7F7 !important;
}
.ieos-role-chip:has(input:checked) {
  border-color: #DC2626 !important;
  background: #FEF2F2 !important;
}
.ieos-role-chip input {
  accent-color: #DC2626;
  margin: 0 !important;
}
.ieos-role-chip-wide {
  grid-column: 1 / -1;
  flex-wrap: wrap;
}
.ieos-role-other-input {
  flex: 1;
  min-width: 140px;
  margin-left: 4px !important;
  padding: 8px 10px !important;
  border: 1px solid #E2E8F0 !important;
  border-radius: 8px !important;
}

/* Details grid */
.ieos-reg-panel .ieos-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 560px) {
  .ieos-reg-panel .ieos-form-row { grid-template-columns: 1fr; }
}

.ieos-claim-banner {
  margin-bottom: 18px !important;
  border-radius: 12px !important;
}

/* Brand panel register-specific emphasis */
.ieos-auth-split-register .ieos-auth-brand-panel {
  min-height: 100%;
}

.ieos-auth-split-register .ieos-auth-footer {
  margin-top: 18px;
}

/* ==========================================================================
   AUTH CARD HOVER 1.9.63
   ========================================================================== */

.ieos-type-card {
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease !important;
}
.ieos-type-card:hover {
  transform: translateY(-2px);
  border-color: #FCA5A5 !important;
  box-shadow: 0 10px 22px rgba(220, 38, 38, 0.1) !important;
}
.ieos-type-card:has(input:checked):hover {
  transform: translateY(-1px);
}

.ieos-role-chip {
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    border-color 0.15s ease,
    background 0.15s ease !important;
}
.ieos-role-chip:hover {
  transform: translateY(-1px);
  border-color: #FCA5A5 !important;
  box-shadow: 0 6px 14px rgba(220, 38, 38, 0.08) !important;
  background: #FFF7F7 !important;
}

.ieos-checkbox-group label,
.ieos-radio-group label {
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    border-color 0.15s ease !important;
}
.ieos-checkbox-group label:hover,
.ieos-radio-group label:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(220, 38, 38, 0.08);
}

.ieos-auth-split {
  transition: box-shadow 0.25s ease;
}
.ieos-auth-split:hover {
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.14) !important;
}

@media (prefers-reduced-motion: reduce) {
  .ieos-type-card,
  .ieos-role-chip,
  .ieos-checkbox-group label,
  .ieos-radio-group label {
    transition: none !important;
  }
  .ieos-type-card:hover,
  .ieos-role-chip:hover {
    transform: none !important;
  }
}

/* ==========================================================================
   REGISTER WIDTH 1.9.64 — roomier form panel
   ========================================================================== */

.ieos-auth-split-register {
  max-width: 1120px !important;
  width: calc(100% - 32px) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  grid-template-columns: minmax(280px, 0.9fr) minmax(360px, 1.25fr) !important;
}

.ieos-auth-split-register .ieos-reg-panel {
  padding: 40px 48px !important;
  min-width: 0;
}

.ieos-auth-split-register .ieos-auth-brand-panel {
  padding: 44px 36px !important;
}

.ieos-auth-split-register .ieos-form-row {
  grid-template-columns: 1fr 1fr !important;
  gap: 16px 18px !important;
}

.ieos-auth-split-register .ieos-type-cards {
  gap: 14px !important;
}

.ieos-auth-split-register .ieos-type-card {
  padding: 16px 18px !important;
  min-height: 88px;
}

.ieos-auth-split-register .ieos-role-grid {
  gap: 10px !important;
}

.ieos-auth-split-register .ieos-form-group input,
.ieos-auth-split-register .ieos-password-wrap input {
  min-height: 46px;
}

@media (max-width: 960px) {
  .ieos-auth-split-register {
    grid-template-columns: 1fr !important;
    max-width: 560px !important;
  }
  .ieos-auth-split-register .ieos-auth-brand-panel {
    display: none;
  }
  .ieos-auth-split-register .ieos-reg-panel {
    padding: 32px 24px !important;
  }
}


/* ==========================================================================
   LOGIN / REGISTER STABILITY 2.1.11
   Prevent theme + IEOS width fights on auth pages
   ========================================================================== */
.ieos-auth-split {
  max-width: min(960px, 100%) !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) !important;
  box-sizing: border-box !important;
}
.ieos-auth-split-register {
  max-width: min(1040px, 100%) !important;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.2fr) !important;
}
.ieos-auth-split .ieos-auth-panel,
.ieos-auth-split .ieos-reg-panel {
  min-width: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}
.ieos-auth-split .ieos-form-row {
  grid-template-columns: 1fr 1fr !important;
}
@media (max-width: 900px) {
  .ieos-auth-split,
  .ieos-auth-split-register {
    grid-template-columns: 1fr !important;
  }
  .ieos-auth-split .ieos-auth-brand-panel {
    display: none !important;
  }
}
@media (max-width: 560px) {
  .ieos-auth-split .ieos-form-row {
    grid-template-columns: 1fr !important;
  }
}
