/* ==========================================================================
   ACRB REGISTRATION COMPONENT (SCOPED - NO :ROOT, NO GRADIENTS)
   Location: assets/css/frontend/register.css
   ========================================================================== */

/* Scoped Variable Fallbacks & Font/Text Colors */
.acrb-reg-container,
.acrb-reg-solo-wrapper {
  --acrb-reg-primary: #4f46e5;
  --acrb-reg-secondary: #64748b;
  --acrb-reg-text: #0f172a;
  --acrb-reg-accent: #059669;
  --acrb-reg-btn-bg: #4f46e5;
  --acrb-reg-btn-hover: #4338ca;
  --acrb-reg-font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  font-family: var(--acrb-reg-font, sans-serif);
  color: var(--acrb-reg-text, #0f172a);
  box-sizing: border-box;
}

.acrb-reg-container *,
.acrb-reg-container *::before,
.acrb-reg-container *::after,
.acrb-reg-solo-wrapper *,
.acrb-reg-solo-wrapper *::before,
.acrb-reg-solo-wrapper *::after {
  box-sizing: inherit;
}

/* --------------------------------------------------------------------------
   SVG Icon Standards
   -------------------------------------------------------------------------- */
.acrb-reg-icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  stroke-width: 2;
  stroke: currentColor;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  vertical-align: middle;
}

/* --------------------------------------------------------------------------
   Wrapper Layouts (Solo vs Split Container)
   -------------------------------------------------------------------------- */
.acrb-reg-solo-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 85vh;
  padding: 24px 16px;
}

.acrb-reg-container {
  max-width: 980px;
  margin: 40px auto;
  display: flex;
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.08);
  border: 1px solid #e2e8f0;
}

/* --------------------------------------------------------------------------
   Side Info Panel (Solid Dark Surface - No Gradients)
   -------------------------------------------------------------------------- */
.acrb-reg-info {
  flex: 1;
  background: var(--acrb-reg-text, #0f172a);
  padding: 50px 40px;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.acrb-reg-info h2 {
  color: #ffffff !important;
  font-size: 28px;
  margin: 0 0 14px 0;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.acrb-reg-info p {
  color: #94a3b8;
  line-height: 1.55;
  font-size: 14px;
  margin: 0 0 24px 0;
}

.acrb-info-list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px 0;
}

.acrb-info-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 13.5px;
  color: #e2e8f0;
  font-weight: 600;
}

.acrb-info-list .acrb-reg-icon {
  color: var(--acrb-reg-primary, #4f46e5);
}

.acrb-reg-copyright {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.6);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 18px;
}

/* --------------------------------------------------------------------------
   Registration Form Card & Grid Inputs
   -------------------------------------------------------------------------- */
.acrb-reg-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  padding: 36px 40px;
  width: 100%;
  max-width: 520px;
  box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.08);
}

.acrb-reg-container .acrb-reg-card {
  flex: 1.4;
  padding: 50px 40px;
  border: none;
  max-width: none;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.acrb-reg-title {
  margin: 0 0 6px 0;
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--acrb-reg-text, #0f172a);
  letter-spacing: -0.02em;
}

.acrb-reg-container .acrb-reg-title {
  font-size: 24px;
  font-weight: 800;
}

.acrb-reg-subtitle {
  margin: 0 0 24px 0;
  font-size: 0.9rem;
  color: var(--acrb-reg-secondary, #64748b);
}

.acrb-reg-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.acrb-reg-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.acrb-reg-field.full-width,
.acrb-reg-container .acrb-reg-full {
  grid-column: 1 / -1;
}

.acrb-reg-field label {
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 700;
  color: #475569;
  letter-spacing: 0.04em;
}

.acrb-reg-container .acrb-reg-field label {
  font-size: 13px;
  color: var(--acrb-reg-text, #0f172a);
}

.acrb-reg-field input,
.acrb-reg-container .acrb-reg-field input {
  width: 100% !important;
  height: 44px !important;
  padding: 8px 14px !important;
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  color: var(--acrb-reg-text, #0f172a) !important;
  transition: all 0.2s ease !important;
  font-family: inherit !important;
  outline: none !important;
}

.acrb-reg-container .acrb-reg-field input {
  height: 42px !important;
  padding: 0 14px !important;
  border-color: #cbd5e1 !important;
  border-radius: 8px !important;
  font-size: 13.5px !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.02) !important;
  line-height: 40px !important;
}

.acrb-reg-field input:hover {
  border-color: #94a3b8 !important;
  background: #ffffff !important;
}

.acrb-reg-field input:focus {
  background: #ffffff !important;
  border-color: var(--acrb-reg-primary, #4f46e5) !important;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12) !important;
}

/* Password Strength & Match Feedback */
.acrb-password-meter-wrap {
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.acrb-password-meter-bar {
  width: 100%;
  height: 4px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}

.acrb-password-meter-fill {
  height: 100%;
  width: 0%;
  transition: width 0.25s ease, background-color 0.25s ease;
}

.acrb-password-meter-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: #64748b;
}

.acrb-field-feedback {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  margin-top: 4px;
  font-weight: 500;
}

.acrb-field-feedback.is-match {
  color: #059669;
}

.acrb-field-feedback.is-mismatch {
  color: #dc2626;
}

.acrb-field-feedback svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Submit Button & Status Feedback
   -------------------------------------------------------------------------- */
.acrb-reg-btn {
  width: 100%;
  height: 48px;
  background: var(--acrb-reg-btn-bg, #4f46e5);
  color: #ffffff !important;
  border: none;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.25);
  margin-top: 20px;
  font-family: inherit;
}

.acrb-reg-container .acrb-reg-btn {
  height: 44px;
  border-radius: 8px;
  font-size: 13.5px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
}

.acrb-reg-btn:hover {
  background: var(--acrb-reg-btn-hover, #4338ca);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(79, 70, 229, 0.35);
  opacity: 0.94;
}

.acrb-reg-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.acrb-reg-container .acrb-reg-btn:disabled {
  background: #94a3b8 !important;
  border-color: #94a3b8 !important;
}

#acrb-reg-msg {
  margin-top: 14px;
  font-size: 0.85rem;
  text-align: center;
  font-weight: 600;
}

.status-loading {
  color: #64748b;
}

.status-success {
  color: #059669;
}

.status-error {
  color: #dc2626;
  background: #fef2f2;
  border: 1px solid #fecaca;
  padding: 8px 12px;
  border-radius: 8px;
  text-align: left;
}

.acrb-reg-container .acrb-reg-alert {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 8px;
  display: none;
  font-size: 13px;
  text-align: center;
  font-weight: 600;
}

.acrb-reg-container .alert-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
  display: block;
}

.acrb-reg-container .alert-success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  display: block;
}

.acrb-reg-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 0.85rem;
  color: var(--acrb-reg-secondary, #64748b);
}

.acrb-reg-container .acrb-reg-footer {
  margin-top: 22px;
  font-size: 13px;
}

.acrb-reg-footer a {
  color: var(--acrb-reg-primary, #4f46e5);
  font-weight: 700;
  text-decoration: none;
}

.acrb-reg-footer a:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .acrb-reg-container {
    flex-direction: column;
    margin: 20px;
  }
  .acrb-reg-container .acrb-reg-info {
    padding: 32px 24px;
  }
  .acrb-reg-container .acrb-reg-card {
    padding: 32px 24px;
  }
  .acrb-reg-container .acrb-reg-grid {
    grid-template-columns: 1fr;
  }
  .acrb-reg-container .acrb-reg-full {
    grid-column: span 1;
  }
}

@media (max-width: 640px) {
  .acrb-reg-grid {
    grid-template-columns: 1fr;
  }
  .acrb-reg-card {
    padding: 24px 20px;
    border: none;
    box-shadow: none;
    background: transparent;
  }
  .acrb-reg-solo-wrapper {
    padding: 0;
  }
}