* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
}

.register-page {
  background-color: #f3f1ff;
}

.register-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.register-card {
  width: 100%;
  max-width: 1280px;
  background-color: #f8f8f8;
  border-radius: 28px;
  padding: 40px 54px 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.top-icon {
  display: flex;
  justify-content: center;
}

.register-icon {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background-color: #5b22b8;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 2rem;
  margin-bottom: 14px;
}

.register-title {
  margin: 0;
  text-align: center;
  color: #2f1458;
  font-size: 2.9rem;
  font-weight: 500;
}

.register-subtitle {
  margin: 12px 0 38px;
  text-align: center;
  color: #8e8e8e;
  font-size: 1rem;
}

.register-form {
  width: 100%;
}

.form-label {
  display: block;
  margin-bottom: 12px;
  color: #1f1235;
  font-size: 0.95rem;
  font-weight: 700;
}

.form-label span {
  color: #c257ff;
}

/* FOTO */
.photo-section {
  margin-bottom: 24px;
}

.photo-row {
  display: flex;
  align-items: center;
  gap: 24px;
  width: 100%;
}

.photo-preview {
  width: 106px;
  height: 106px;
  min-width: 106px;
  border: 2px dashed #8b5cf6;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6d28d9;
  font-size: 2rem;
  overflow: hidden;
  background-color: transparent;
  position: relative;
}

.photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.photo-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  width: 100%;
}

.photo-button {
  width: 100%;
  height: 60px;
  border: 1.5px solid #7c3aed;
  border-radius: 12px;
  background-color: #f1eeff;
  color: #5b22b8;
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.photo-button:hover {
  background-color: #ebe6ff;
}

.photo-help {
  margin: 10px 0 0;
  color: #979797;
  font-size: 0.82rem;
}

/* GRID */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 24px;
}

.field-group {
  width: 100%;
}

.full-width {
  grid-column: 1 / -1;
}

.input-wrapper {
  position: relative;
}

.input-icon {
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  color: #7c7c7c;
  font-size: 1rem;
  z-index: 2;
}

.form-input {
  width: 100%;
  height: 60px;
  border: 1px solid #cfd3da;
  border-radius: 14px;
  background-color: #ffffff;
  padding-left: 48px;
  padding-right: 16px;
  font-size: 0.95rem;
  color: #333333;
  outline: none;
  transition: all 0.2s ease;
}

.form-input::placeholder {
  color: #9a9a9a;
}

.form-input:focus {
  border-color: #5b22b8;
  box-shadow: 0 0 0 3px rgba(91, 34, 184, 0.15);
}

.select-wrapper .form-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  padding-right: 48px;
}

.select-arrow {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  color: #7c7c7c;
  pointer-events: none;
  font-size: 1rem;
}

.form-divider {
  width: 100%;
  height: 1px;
  background-color: #8b5cf6;
  margin: 22px 0 20px;
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.back-link {
  color: #8d8d8d;
  text-decoration: none;
  font-size: 0.95rem;
}

.back-link:hover {
  text-decoration: underline;
}

.register-button {
  min-width: 160px;
  height: 48px;
  border: none;
  border-radius: 10px;
  background-color: #5b22b8;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background-color 0.2s ease;
}

.register-button:hover {
  background-color: #4d1ea0;
}

/* TABLET */
@media (max-width: 991px) {
  .register-card {
    padding: 32px 28px 24px;
  }

  .register-title {
    font-size: 2.2rem;
  }

  .photo-row {
    align-items: flex-start;
  }

  .photo-info {
    width: 100%;
  }

  .form-grid {
    grid-template-columns: 1fr 1fr;
  }

  .form-input {
    height: 54px;
  }
}

/* CELULAR */
@media (max-width: 767px) {
  .register-container {
    padding: 14px;
  }

  .register-card {
    padding: 24px 18px 20px;
    border-radius: 22px;
  }

  .register-icon {
    width: 68px;
    height: 68px;
    font-size: 1.7rem;
  }

  .register-title {
    font-size: 2rem;
    line-height: 1.1;
  }

  .register-subtitle {
    font-size: 0.92rem;
    margin-bottom: 28px;
  }

  .photo-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .photo-preview {
    width: 96px;
    height: 96px;
    min-width: 96px;
  }

  .photo-info {
    width: 100%;
  }

  .photo-button {
    height: 52px;
    font-size: 0.92rem;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .full-width {
    grid-column: auto;
  }

  .form-input {
    height: 52px;
    border-radius: 12px;
  }

  .form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .register-button {
    width: 100%;
  }
}

/* Registro compacto alineado al formulario de empresa */
.register-container {
  align-items: flex-start;
  padding: 28px 14px;
}

.register-card {
  max-width: 780px;
  border-radius: 24px;
  padding: 24px 34px 22px;
  background: #ffffff;
}

.register-icon {
  width: 48px;
  height: 48px;
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.register-title {
  font-size: 1.55rem;
}

.register-subtitle {
  margin: 6px 0 20px;
  font-size: .82rem;
}

.form-label {
  margin-bottom: 6px;
  font-size: .84rem;
}

.photo-section {
  margin-bottom: 14px;
}

.photo-row {
  gap: 14px;
}

.photo-preview {
  width: 70px;
  height: 70px;
  min-width: 70px;
  border-radius: 14px;
  font-size: 1.35rem;
}

.photo-button {
  height: 36px;
  border-radius: 9px;
  font-size: .86rem;
}

.photo-help {
  margin-top: 6px;
  font-size: .76rem;
}

.form-grid {
  gap: 11px 14px;
}

.form-input {
  height: 38px;
  border-radius: 9px;
  padding-left: 40px;
  font-size: .88rem;
}

.input-icon {
  left: 14px;
  font-size: .9rem;
}

.form-divider {
  margin: 16px 0 12px;
}

.register-button {
  height: 40px;
  min-width: 140px;
  border-radius: 9px;
  font-size: .88rem;
}

.back-link {
  font-size: .84rem;
}

@media (max-width: 720px) {
  .register-card {
    padding: 20px 16px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
}

