/* ========== LOGIN / REGISTRO ========== */

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.login-box {
  background: #fff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  width: 100%;
  max-width: 380px;
  box-sizing: border-box;
}

.login-box h1 {
  margin: 0 0 25px 0;
  font-size: 24px;
  font-weight: 600;
  color: #333;
  text-align: center;
}

.login-box label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #555;
  margin-bottom: 6px;
}

.login-box input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  margin-bottom: 18px;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.login-box input:focus {
  outline: none;
  border-color: #667eea;
}

.login-box button {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.login-box button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.login-box button:active {
  transform: translateY(0);
}

/* ========== CREDENCIALES POR DEFECTO ========== */

.default-credentials {
  margin-top: 20px;
  padding: 15px;
  background: #e8f4fd;
  border: 1px solid #b8daff;
  border-radius: 8px;
  text-align: center;
}

.default-credentials .default-title {
  margin: 0 0 8px 0;
  font-size: 13px;
  font-weight: 600;
  color: #0c5460;
}

.default-credentials .default-title i {
  margin-right: 6px;
}

.default-credentials .default-msg {
  margin: 0 0 10px 0;
  font-size: 12px;
  color: #0c5460;
}

.default-credentials .default-user {
  margin: 0;
  padding: 10px;
  background: #fff;
  border-radius: 6px;
  font-size: 13px;
  color: #333;
  line-height: 1.6;
}

.default-credentials .default-user strong {
  color: #0c5460;
}

/* ========== MENSAJES ========== */

.error {
  color: #e74c3c;
  font-size: 13px;
  text-align: center;
  margin-top: 15px;
  min-height: 20px;
}

.switch {
  text-align: center;
  font-size: 13px;
  color: #888;
  margin-top: 15px;
}

.switch a {
  color: #667eea;
  text-decoration: none;
  font-weight: 500;
}

.switch a:hover {
  text-decoration: underline;
}

/* ========== RECUPERACIÓN DE CONTRASEÑA ========== */

.recovery-info {
  text-align: center;
  font-size: 13px;
  color: #666;
  margin-bottom: 20px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
  line-height: 1.5;
}

.recovery-info i {
  display: block;
  font-size: 28px;
  color: #667eea;
  margin-bottom: 10px;
}

/* ========== RESPONSIVE ========== */

@media (max-width: 420px) {
  .login-box {
    margin: 15px;
    padding: 30px 25px;
  }
}