

:root {
  --c-primary: #52377C;
  --c-primary-hover: #432b68;
  --c-primary-light: #f3e8ff;
  --c-text: #0f172a;
  --c-text-muted: #64748b;
  --c-border: #e2e8f0;
  --c-bg-subtle: #f8fafc;
}


.c4u-auth-page {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--c-text);
  box-sizing: border-box;
}

.c4u-auth-container {
  width: 100%;
  max-width: 820px;
  margin: auto;
  padding: 16px;
  box-sizing: border-box;
}


.c4u-auth-container-compact {
  max-width: 760px;
}


.c4u-auth-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.06), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  box-sizing: border-box;
}

@media (min-width: 1024px) {
  .c4u-auth-card-2col {
    grid-template-columns: 1.15fr 0.85fr;
  }
}


.c4u-auth-form-panel {
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
}

@media (min-width: 640px) {
  .c4u-auth-form-panel {
    padding: 28px 32px;
  }
}


.c4u-auth-brand-panel {
  background: linear-gradient(135deg, #160a28 0%, #2e1065 50%, #0f172a 100%);
  color: #ffffff;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}


.c4u-auth-logo-link {
  display: inline-block;
  margin-bottom: 14px;
}

.c4u-auth-logo {
  height: 26px;
  width: auto;
  display: block;
}

.c4u-auth-title {
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 4px 0;
  letter-spacing: -0.02em;
}

.c4u-auth-subtitle {
  font-size: 12px;
  color: #64748b;
  margin: 0 0 16px 0;
  line-height: 1.4;
}


.c4u-form-group {
  margin-bottom: 12px;
  box-sizing: border-box;
}

.c4u-field-label {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 4px;
}

.c4u-field-required {
  color: #ef4444;
}

.c4u-input-text {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 12px;
  font-size: 13px;
  font-family: inherit;
  color: #0f172a;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.c4u-input-text:focus {
  border-color: #52377C;
  box-shadow: 0 0 0 3px rgba(82, 55, 124, 0.12);
}


.c4u-password-wrapper {
  position: relative !important;
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  box-sizing: border-box !important;
}

.c4u-password-wrapper input {
  width: 100% !important;
  box-sizing: border-box !important;
  padding-right: 40px !important;
}

.c4u-password-toggle-btn {
  position: absolute !important;
  right: 10px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  background: transparent !important;
  border: none !important;
  cursor: pointer !important;
  color: #94a3b8 !important;
  padding: 4px !important;
  font-size: 14px !important;
  line-height: 1 !important;
  z-index: 5 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: color 0.15s ease !important;
}

.c4u-password-toggle-btn:hover {
  color: #52377C !important;
}


.c4u-phone-group-unified {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.c4u-country-code-select {
  flex: 0 0 135px !important;
  width: 135px !important;
  min-width: 125px !important;
  max-width: 145px !important;
  box-sizing: border-box !important;
  padding: 8px 8px !important;
  font-size: 12.5px !important;
  font-weight: 500 !important;
  color: #1e293b !important;
  background-color: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  outline: none !important;
  height: 38px !important;
}

.c4u-country-code-select:focus {
  border-color: #52377C !important;
  box-shadow: 0 0 0 3px rgba(82, 55, 124, 0.12) !important;
}

.c4u-phone-number-input {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
  padding: 8px 12px !important;
  font-size: 13px !important;
  color: #1e293b !important;
  background-color: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 8px !important;
  outline: none !important;
  height: 38px !important;
}

.c4u-phone-number-input:focus {
  border-color: #52377C !important;
  box-shadow: 0 0 0 3px rgba(82, 55, 124, 0.12) !important;
}


.c4u-auth-alert {
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 11.5px;
  line-height: 1.4;
  margin-bottom: 12px;
  box-sizing: border-box;
}

.c4u-auth-alert-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
}

.c4u-auth-alert-warning {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}

.c4u-auth-alert-success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #15803d;
}


.c4u-auth-submit-btn {
  width: 100%;
  padding: 9px 16px;
  background: #52377C;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 2px 6px rgba(82, 55, 124, 0.25);
  transition: all 0.15s ease;
  box-sizing: border-box;
  margin-top: 4px;
}

.c4u-auth-submit-btn:hover {
  background: #432b68;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(82, 55, 124, 0.3);
}

.c4u-auth-submit-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}


.c4u-slider-box {
  width: 250px;
  height: 250px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(15, 23, 42, 0.8);
  position: relative;
  flex-shrink: 0;
  margin-bottom: 12px;
}

.c4u-slider-box img {
  width: 250px;
  height: 250px;
  object-fit: cover;
  display: block;
  transition: opacity 0.3s ease;
}

.c4u-slider-dots {
  position: absolute;
  bottom: 8px;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  z-index: 5;
}

.c4u-slider-dot {
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.2s ease;
}

.c4u-slider-dot.active {
  background: #2dd4bf;
  width: 16px;
}

.c4u-slider-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(82, 55, 124, 0.35);
  color: #2dd4bf;
  border: 1px solid rgba(45, 212, 191, 0.3);
  margin-bottom: 4px;
}

.c4u-slider-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 3px 0;
}

.c4u-slider-caption {
  font-size: 11px;
  color: rgba(233, 213, 255, 0.85);
  line-height: 1.4;
  margin: 0;
  max-width: 250px;
}

.c4u-slider-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 10px;
  color: rgba(216, 180, 254, 0.7);
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  width: 250px;
}
