body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f5f6fa;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  color: #2c3e50;
}

.container {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  width: 100%;
  max-width: 420px;
}

.login-header h1 {
  margin: 0;
  font-size: 1.8rem;
  color: #34495e;
  text-align: center;
}

.subtitle {
  font-size: 0.9rem;
  color: #7f8c8d;
  text-align: center;
  margin-bottom: 1.5rem;
}

h2 {
  margin-top: 0;
  font-size: 1.3rem;
  color: #34495e;
  margin-bottom: 1rem;
  text-align: center;
}

form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

input {
  padding: 0.6rem 0.75rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

button {
  padding: 0.7rem;
  border: none;
  border-radius: 6px;
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
}

button:hover {
  background: linear-gradient(135deg, #2980b9, #3498db);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-secondary {
  background: linear-gradient(135deg, #1abc9c, #16a085);
}

.btn-secondary:hover {
  background: linear-gradient(135deg, #16a085, #1abc9c);
}

p.message {
  font-size: 0.9rem;
  color: #d9534f;
  margin: 0 0 1rem 0;
  text-align: center;
}

hr {
  border: none;
  border-top: 1px solid #eee;
  margin: 1.5rem 0;
}

/* ===== Spinner universal ===== */
.spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
  margin-left: 8px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.logo-login {
  display: block;
  margin: 0 auto 1rem auto;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
}

header .header-content {
    flex-direction: column;
    align-items: center;
}

header img.logo-header {
  width: 120px;
  height: auto;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ===== Imagen del logo ===== */
.logo-header {
  display: block;               /* Asegura que el margin auto funcione */
  margin: 0 auto 1rem auto;     /* Centra horizontalmente y da margen inferior */
  width: 120px;                 /* Tamaño más grande */
  height: 120px;                /* Mantiene proporción cuadrada */
  border-radius: 50%;           /* Mantiene forma circular */
  object-fit: cover;            /* Ajusta bien la imagen al contorno */
  box-shadow: 0 4px 10px rgba(0,0,0,0.1); /* Sombra sutil para estética */
}

/* Link "olvidé mi contraseña" estilo */
.forgot-link a {
  color: #2980b9;
  text-decoration: none;
  font-size: 0.95rem;
}
.forgot-link a:hover { text-decoration: underline; }

.create-account a {
  color: #16a085;
  text-decoration: none;
  font-size: 0.95rem;
}

.create-account a:hover {
  text-decoration: underline;
}
