/* ===== Register Page — Specific Styles ===== */

/* Step indicator */

.step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 28px;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.step-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 500;
  border: 2px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.4);
  background: transparent;
  transition: all 0.4s ease;
}

.step-circle.active {
  border-color: #dc2626;
  background: #dc2626;
  color: #fff;
  box-shadow: 0 0 15px rgba(220, 38, 38, 0.4);
}

.step-circle.done {
  border-color: #22c55e;
  background: #22c55e;
  color: #fff;
}

.step-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.3s;
}

.step-label.active {
  color: #fff;
}

.step-label.done {
  color: #22c55e;
}

.step-connector {
  width: 40px;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  margin: 0 8px;
  position: relative;
  overflow: hidden;
}

.step-connector::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: #22c55e;
  transition: width 0.4s ease;
}

.step-connector.done::after {
  width: 100%;
}


/* Form steps */

.form-step {
  display: none;
  animation: fadeIn 0.35s ease-out;
}

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

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


/* Code input */

.code-row {
  display: flex;
  gap: 12px;
}

.code-row .input-wrapper {
  flex: 1;
}

.btn-code {
  height: 52px;
  padding: 0 20px;
  background: rgba(220, 38, 38, 0.2);
  border: 1px solid rgba(220, 38, 38, 0.3);
  border-radius: 8px;
  color: #dc2626;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s ease;
  font-family: inherit;
}

.btn-code:hover:not(:disabled) {
  background: rgba(220, 38, 38, 0.35);
  border-color: #dc2626;
}

.btn-code:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-code.sent {
  color: #22c55e;
  border-color: rgba(34, 197, 94, 0.3);
  background: rgba(34, 197, 94, 0.1);
}


/* Input valid state */

.input-field.valid {
  border-color: rgba(34, 197, 94, 0.5);
}


/* Register card (extends .auth-card) */

.register-card {
  position: relative;
  width: 100%;
  max-width: 448px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  padding: 40px;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.register-title {
  font-size: 36px;
  font-weight: 500;
  text-align: center;
  background: linear-gradient(135deg, #fff, #ff0000);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.register-subtitle {
  font-size: 14px;
  color: #e7bcb8;
  text-align: center;
  opacity: 0.8;
  margin-bottom: 24px;
}


/* Terms */

.terms-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 8px 0 24px;
}

.checkbox-custom {
  width: 18px;
  height: 18px;
  min-width: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  background: rgba(220, 38, 38, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-top: 2px;
  transition: all 0.2s;
}

.checkbox-custom.checked {
  background: #dc2626;
  border-color: #dc2626;
}

.checkbox-custom svg {
  opacity: 0;
  transition: opacity 0.2s;
}

.checkbox-custom.checked svg {
  opacity: 1;
}

.terms-text {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 300;
  line-height: 1.6;
}

.terms-text a {
  color: #dc2626;
  text-decoration: none;
}

.terms-text a:hover {
  text-decoration: underline;
}


/* Hidden fields (step 3) */

.hidden-fields {
  display: none;
}

.hidden-fields.visible {
  display: block;
  animation: fadeIn 0.35s ease-out;
}


/* Footer link (different from auth.css) */

.footer-link {
  text-align: center;
  padding-top: 16px;
}

.footer-link a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s;
}

.footer-link a:hover {
  color: #fff;
}

.footer-link svg {
  width: 16px;
  height: 16px;
}


/* Register page responsive overrides */

@media (max-width: 640px) {
  .register-card {
    padding: 28px 20px;
    border-radius: 8px;
  }

  .register-title {
    font-size: 28px;
  }

  .step-connector {
    width: 24px;
  }

  .code-row {
    flex-direction: column;
  }

  .btn-code {
    width: 100%;
  }
}
