/**
 * Diseño de la página de registro gratuito de hoja de vida (/registro-hoja-de-vida).
 * Estilos scoped bajo .whv-register-page para no afectar otros formularios
 * de Drupal que compartan las mismas clases genéricas (form-item, form-text, etc.).
 */

.whv-register-page {
  width: 100%;
  margin: 0 auto;
  padding: 0;
}

.whv-register-layout {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.whv-register-card {
  flex: 0 1 50%;
  max-width: 50%;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 10px 35px rgba(29, 53, 87, 0.1);
  overflow: hidden;
}

.whv-register-info {
  flex: 1 1 280px;
  min-width: 280px;
  padding: 32px 8px;
}

.whv-register-info__icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(53, 137, 161, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.whv-register-info__icon i {
  color: #3589a1;
  font-size: 1.4rem;
}

.whv-register-info__title {
  color: #1D3557;
  font-weight: 700;
  font-size: 1.3rem;
  margin: 0 0 12px;
}

.whv-register-info__text {
  font-size: 0.92rem;
  color: #4a5568;
  line-height: 1.6;
  margin: 0 0 22px;
}

.whv-register-card__header {
  background: linear-gradient(135deg, #1D3557 0%, #3589a1 100%);
  padding: 28px 32px 24px;
  text-align: center;
}

.whv-register-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

.whv-register-card__icon i {
  color: #fff;
  font-size: 1.4rem;
}

.whv-register-card__title {
  color: #fff;
  font-weight: 700;
  font-size: 1.15rem;
  margin: 0 0 4px;
}

.whv-register-card__subtitle {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
  margin: 0;
}

.whv-register-card__body {
  padding: 28px 32px 32px;
}

.whv-benefits {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.whv-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.82rem;
  color: #1D3557;
}

.whv-benefits li i {
  color: #3589a1;
  font-size: 0.9rem;
  margin-top: 2px;
  flex-shrink: 0;
  width: 16px;
  text-align: center;
}

/* Botón Google */
.whv-google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 11px 18px;
  border: 1.5px solid #dde6f0;
  border-radius: 10px;
  background: #fff;
  color: #1D3557;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.whv-google-btn:hover {
  background: #f8faff;
  border-color: #3589a1;
  color: #1D3557;
}

.whv-google-btn i {
  color: #ea4335;
  font-size: 1.05rem;
}

.whv-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0;
  color: #a0aec0;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.whv-divider::before,
.whv-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e6ecf3;
}

/* Overrides de los campos por defecto de Drupal Form API */
.whv-register-page .form-item {
  margin-bottom: 18px;
}

.whv-register-page label {
  font-weight: 600;
  font-size: 0.85rem;
  color: #1D3557;
  margin-bottom: 6px;
  display: block;
}

.whv-register-page input.form-text,
.whv-register-page input.form-email,
.whv-register-page input.form-password {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #dde6f0;
  border-radius: 10px;
  font-size: 0.92rem;
  color: #1D3557;
  transition: border-color 0.15s ease;
}

.whv-register-page input.form-text:focus,
.whv-register-page input.form-email:focus,
.whv-register-page input.form-password:focus {
  outline: none;
  border-color: #3589a1;
  box-shadow: 0 0 0 3px rgba(53, 137, 161, 0.12);
}

.whv-register-page .description {
  font-size: 0.75rem;
  color: #718096;
  margin-top: 4px;
}

.whv-register-page .password-strength,
.whv-register-page .password-confirm {
  font-size: 0.75rem;
}

.whv-register-page .form-type-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: #f8faff;
  border-radius: 10px;
  padding: 12px 14px;
}

.whv-register-page .form-type-checkbox label {
  font-weight: 400;
  font-size: 0.82rem;
  color: #4a5568;
  margin: 0;
}

.whv-register-page .form-checkbox {
  margin-top: 3px;
  flex-shrink: 0;
}

.whv-register-page input.form-submit {
  width: 100%;
  padding: 12px 18px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #1D3557 0%, #3589a1 100%);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.whv-register-page input.form-submit:hover {
  opacity: 0.92;
}

.whv-register-page .whv-login-link {
  text-align: center;
  font-size: 0.85rem;
  color: #718096;
  margin-top: 20px;
}

.whv-register-page .whv-login-link a {
  color: #3589a1;
  font-weight: 600;
  text-decoration: none;
}

.whv-register-page .whv-login-link a:hover {
  text-decoration: underline;
}
