﻿/* Formularios y auth */
.auth-container {
  padding: var(--espacio-lg);
  max-width: 400px;
  margin: 0 auto;
}

.auth-title {
  font-size: var(--texto-xl);
  font-weight: bold;
  text-align: center;
  margin-bottom: var(--espacio-md);
  color: var(--color-primario);
}

.auth-subtitle {
  text-align: center;
  color: #666;
  margin-bottom: var(--espacio-xl);
  font-size: var(--texto-sm);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: var(--espacio-md);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--espacio-xs);
}

.form-label {
  font-size: var(--texto-sm);
  font-weight: bold;
  color: var(--color-texto);
}

.form-input {
  font-family: var(--fuente);
  font-size: var(--texto-md);
  padding: var(--espacio-sm) var(--espacio-md);
  border: 1px solid #ddd;
  border-radius: var(--radio);
  width: 100%;
  min-height: 44px;
}

.form-input:focus {
  outline: none;
  border-color: var(--color-primario);
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: var(--espacio-sm);
  font-size: var(--texto-sm);
  color: #666;
}

.form-checkbox input {
  min-width: 20px;
  margin-top: 2px;
}

.form-checkbox a {
  color: var(--color-primario);
  text-decoration: underline;
}

.auth-divider {
  text-align: center;
  color: #999;
  font-size: var(--texto-sm);
  margin: var(--espacio-md) 0;
  position: relative;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 40%;
  height: 1px;
  background: #ddd;
}

.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }

.btn-google {
  background: var(--color-blanco);
  color: var(--color-texto);
  border: 1px solid #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--espacio-sm);
  width: 100%;
}

.btn-primary {
  background: var(--color-primario);
  color: var(--color-blanco);
  width: 100%;
}

.btn-secondary {
  background: transparent;
  color: var(--color-primario);
  text-decoration: underline;
  width: 100%;
}

.auth-error {
  background: #fee;
  color: var(--color-peligro);
  padding: var(--espacio-sm) var(--espacio-md);
  border-radius: var(--radio);
  font-size: var(--texto-sm);
  margin-bottom: var(--espacio-md);
  display: none;
}

.auth-error.show {
  display: block;
}

.auth-success {
  background: #e8f5e9;
  color: var(--color-exito);
  padding: var(--espacio-sm) var(--espacio-md);
  border-radius: var(--radio);
  font-size: var(--texto-sm);
  margin-bottom: var(--espacio-md);
  display: none;
}

.auth-success.show {
  display: block;
}

/* Perfil mini (en nav) */
.nav-perfil {
  display: flex;
  align-items: center;
  gap: var(--espacio-xs);
}

.nav-perfil-nombre {
  font-size: var(--texto-sm);
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
