:root {
  --c1: #aa8744;
  --c2: #363636;
  --c3: #fdfbf3;
  --c4: #d1bc97;
  --c5: #9c642d;
  --c-error: #dc2626;
  --c-error-bg: #fef2f2;
  --c-error-border: #fecaca;
}

/* Estilos base */
body {
  font-family: "Work Sans", "Noto Sans", sans-serif;
  background-color: var(--c3);
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.root-container {
  display: flex;
  flex: 1;
  width: 100%;
  overflow-x: hidden;
}

.main-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.form-card {
  width: 100%;
  max-width: 28rem;
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  padding: 2rem;
}

.title {
  color: var(--c2);
  font-size: 1.875rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.5rem;
}

.subtitle {
  color: rgba(54, 54, 54, 0.7);
  text-align: center;
  margin-bottom: 2rem;
}

.tab-container {
  display: flex;
  margin-bottom: 1.5rem;
  border: 1px solid var(--c4);
  border-radius: 0.5rem;
  background-color: var(--c3);
  padding: 0.25rem;
}

.tab-button {
  flex: 1;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  background: transparent;
  border: none;
  transition: all 0.2s;
  cursor: pointer;
}

.tab-active {
  background-color: white;
  color: var(--c2);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.1);
}

.tab-inactive {
  background-color: transparent;
  color: rgba(54, 54, 54, 0.7);
}

.tab-inactive:hover {
  background-color: rgba(255, 255, 255, 0.5);
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--c2);
  margin-bottom: 0.5rem;
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.375rem;
  border: 1px solid var(--c4);
  background-color: var(--c3);
  color: var(--c2);
  font-size: 0.875rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input::placeholder {
  color: rgba(54, 54, 54, 0.5);
}

.form-input:focus {
  outline: none;
  border-color: var(--c1);
  box-shadow: 0 0 0 3px rgba(170, 135, 68, 0.3);
}

.form-input:invalid:not(:focus):not(:placeholder-shown) {
  border-color: #f87171;
}

/* Estilos para campos con error */
.form-input.error {
  border-color: var(--c-error);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.btn-primary {
  display: flex;
  justify-content: center;
  width: 100%;
  border: none;
  border-radius: 0.375rem;
  background-color: var(--c1);
  color: white;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
}

.btn-primary:hover {
  background-color: var(--c5);
}

.btn-primary:disabled {
  background-color: #9ca3af;
  cursor: not-allowed;
}

.btn-primary:disabled:hover {
  background-color: #9ca3af;
}

.link {
  color: var(--c1);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}

.link:hover {
  color: var(--c5);
}

.checkbox {
  height: 1rem;
  width: 1rem;
  border-radius: 0.25rem;
  border: 1px solid var(--c4);
  accent-color: var(--c1);
}

.terms-label {
  margin-left: 0.5rem;
  font-size: 0.875rem;
  color: rgba(54, 54, 54, 0.8);
}

.hidden {
  display: none !important;
}

/* Mejoras para el campo de teléfono */
input[type="tel"] {
  font-family: "Noto Sans", monospace;
}

.helper-text {
  font-size: 0.75rem;
  color: rgba(54, 54, 54, 0.6);
  margin-top: 0.25rem;
}

/* Estilos para mensajes de error */
.error-message {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background-color: var(--c-error-bg);
  border: 1px solid var(--c-error-border);
  border-radius: 0.375rem;
  color: var(--c-error);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.error-icon {
  font-size: 1rem;
  font-weight: bold;
}

.error-text {
  flex: 1;
}

/* Animación para el mensaje de error */
@keyframes shake {

  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-5px);
  }

  75% {
    transform: translateX(5px);
  }
}

.shake {
  animation: shake 0.5s ease-in-out;
}